MacBook Keyboard Shortcuts to Position Window to Left or Right side of Screen

Refer: https://www.paulsahner.com/posts/window-movement

  • Apple Logo, Upper left hand corner
  • System Settings
  • Keyboard, Keyboard Shortcuts...
  • App Shortcuts
  • Choose "All Applications"

You are going to add two settings by clicking the plus key. I'm using [Ctrl]+[Windows]+[Alt]+[Right Arrow] and [Ctrl]+[Windows]+[Alt]+[Left Arrow] for my settings.

You will use the following menu titles, you need to type these EXACTLY, and copy and paste does NOT work, since it assumes you are setting your keyboard combination.

Move Window to Left Side of Screen
Move Window to Right Side of Screen

Save each setting and click "Done" to complete.

Graphical List of Directories using Tree

Use this to return a list of just the folders of current directory

Sample Usage

tree -L 1

Sample Output

├── Desktop
├── Documents
├── Downloads
├── Music
├── Pictures
├── Public
├── Templates
└── Videos

Example of using "prune" to show ONLY files container pom.xml files.

Refer: https://blog.mruckman.com/2019/10/tree-list-of-pom-xml-files/

tree --prune -P "pom\.xml"

Visual Studio Code – Workspace Color Themes and Keyboard Bindings

Don't open last folder

Refer: https://blog.mruckman.com/2019/09/visual-studio-code-dont-open-last-folder/

For your workspace

mkdir .vscode

Copy this file there

settings.json

{
    "cSpell.words": [],
    "editor.fontSize": 13,
    "window.zoomLevel": 1.2,
    "files.trimTrailingWhitespace": true,
    "workbench.colorTheme": "Monokai"
}

Update keyboard bindings

File, Preferences, Keyboard Shortcuts

Triple dot, upper right hand corner, Show User Keybindings

Then upper right hand corner, "Open Keyboard Shortcuts

Here's the current keybindings.txt

Refer: https://stackoverflow.com/questions/71225580/move-to-the-next-line-when-commenting-a-line-in-vs-code