Skip to content

Commit

Permalink
Merge pull request #29522 from lindsayad/vs-code-md-additions
Browse files Browse the repository at this point in the history
Add more command information to `VSCode.md`
  • Loading branch information
lindsayad authored Dec 13, 2024
2 parents 218dbbf + 403bb29 commit 45f3a5f
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions modules/doc/content/help/development/VSCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,46 @@ well as the installed extensions.
- +Close VSCode+. From now on we will _only_ start it from the command line using the `code`
terminal command ensuring that VSCode sees the full MOOSE build environment.

## Important commands
## Commands

- +`Cmd-Shift-P`+ opens the command palette. Every available command can be accessed by typing a
Note that letters shown upper case in commands do not mean literal upper case. You do not have to press shift when typing these letters. This is just the notation (confusing I know). A good reference for hotkeys can be found [here](https://go.microsoft.com/fwlink/?linkid=832143). Linux hotkeys can be found [here](https://go.microsoft.com/fwlink/?linkid=832144). The hotkeys we give below assume MacOS.

- +`Cmd+Shift+P`+ opens the command palette. Every available command can be accessed by typing a
few letters here. The dropdown list shows the keyboard shortcuts.
- +`Cmd-P`+ opens a file anywhere in the current project tree (i.e. below the directory in which you
- +`Cmd+P`+ opens a file anywhere in the current project tree (i.e. below the directory in which you
issued the `code .` command. No need to know the precise path or even the precise spelling of the
filename!
- +`Cmd+[`+ Decrease indent (Outdent)
- +`Cmd+]`+ Increase indent (Indent)
- +`Cmd+F`+ Find
- +`Cmd+Option+F`+ Find and replace
- +`Enter`+ Find next match without replacement
- +`Ctrl+Enter`+ Replace
- +`Cmd+Option+Left/Right Arrow`+ Tab between open editor files as ordered on the screen
- +`Ctrl+Tab`+ Tab between editor files in the order they were opened
- +`Shift+Option+Drag Mouse`+ Rectangular text selection
- +`Option+Repeated Clicks`+ Place multiple cursors (one per each click)
- +`Cmd+S`+ Save current file
- +`Cmd+J`+ Toggle terminal visibility
- +`` Ctrl+` ``+ Toggles on terminal visibility if not currently visible. Switch focus to terminal if focus is elsewhere. If focus is already on terminal, toggles off terminal visibility
- +`Cmd+1`+ Change focus to code editor
- +`Cmd+\`+ Split screen vertically
- +`Cmd+W`+ Close current file. If last file in split, then split will disappear
- +`Ctrl+G`+ Goto line
- +`Ctrl+N`+ Move cursor to next line
- +`Ctrl+P`+ Move cursor to previous line
- +`Ctrl+E`+ Move cursor to end of line
- +`Ctrl+A`+ Move cursor to beginning of line
- +`Ctrl+K`+ Kill from cursor to end of line
- +`Ctrl+Y`+ Redo last undone action (not yank like in emacs)
- +`Ctrl+F`+ Move cursor to next character
- +`Ctrl+B`+ Move cursor to previous character

### Focuses

- +`findInputFocussed`+ Cursor is in the Find box (note that cursor in the Replace box of the Find and Replace box *does not count*)
- +`editorFocus`+ Cursor is within the code editor


## Extensions

Expand Down

0 comments on commit 45f3a5f

Please sign in to comment.