Visual Studio Code: Difference between revisions
Jump to navigation
Jump to search
(→WSL) |
|||
Line 43: | Line 43: | ||
ref: <ref>https://code.visualstudio.com/docs/remote/wsl</ref> | ref: <ref>https://code.visualstudio.com/docs/remote/wsl</ref> | ||
== Code Folding == | |||
Collapse Code Blocks | |||
* Fold All: Ctrl+K Ctrl+0 (Windows/Linux) or Cmd+K Cmd+0 (macOS) collapses all foldable regions. | |||
* Unfold All: Ctrl+K Ctrl+J (Windows/Linux) or Cmd+K Cmd+J (macOS) expands all collapsed regions. | |||
* Fold Current Block: Ctrl+Shift+[ (Windows/Linux) or Cmd+Shift+[ (macOS) folds the innermost uncollapsed region at the cursor. | |||
* Unfold Current Block: Ctrl+Shift+] (Windows/Linux) or Cmd+Shift+] (macOS) unfolds the collapsed region at the cursor. | |||
== keywords == | == keywords == |
Revision as of 20:24, 21 August 2025
Sort Lines
Sort lines - Visual Studio Marketplace https://marketplace.visualstudio.com/items?itemName=Tyriar.sort-lines
Shortcut key: F9
Upper Case
In Visual Studio it was:
To convert text to all upper case, choose Edit > Advanced > Make Uppercase or press Ctrl+Shift+U. To convert text to all lower case, choose Edit > Advanced > Make Lowercase or press Ctrl+U.
Make Uppercase or press Ctrl+Shift+U Make Lowercase or press Ctrl+U
So, to mimmic, set the following Keyboard Shortcuts:
- Transform to Uppercase -> editor.action.transformToUppercase -> Ctrl+Shift+U
- Transform to Uppercase -> editor.action.transformToUppercase -> Ctrl+U
They conflict with existing shortcuts, but doesn't appear to cause any problems...
Chocolatey Install
choco install vscode
https://update.code.visualstudio.com/1.94.0/win32-x64/stable
End of Line Character
Settings -> "files: Eol" and change from "auto" to "\n".
.
Can switch live using the setting in the "status bar":
WSL
code --remote wsl+Ubuntu /home/jim/projects/c
ref: [1]
Code Folding
Collapse Code Blocks
- Fold All: Ctrl+K Ctrl+0 (Windows/Linux) or Cmd+K Cmd+0 (macOS) collapses all foldable regions.
- Unfold All: Ctrl+K Ctrl+J (Windows/Linux) or Cmd+K Cmd+J (macOS) expands all collapsed regions.
- Fold Current Block: Ctrl+Shift+[ (Windows/Linux) or Cmd+Shift+[ (macOS) folds the innermost uncollapsed region at the cursor.
- Unfold Current Block: Ctrl+Shift+] (Windows/Linux) or Cmd+Shift+] (macOS) unfolds the collapsed region at the cursor.