Visual Studio Code: Difference between revisions

From Omnia
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 52: Line 52:
* Fold Current Block: Ctrl+Shift+[ (Windows/Linux) or Cmd+Shift+[ (macOS) folds the innermost uncollapsed region at the cursor.
* 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.
* Unfold Current Block: Ctrl+Shift+] (Windows/Linux) or Cmd+Shift+] (macOS) unfolds the collapsed region at the cursor.
Expand to 2nd level:
* First expand all:
** Ctrl+K Ctrl+J
* Second expand
** Ctrl+K Ctrl+2
== List Plugins and Versions ==
List VS Code extensions and Versions:
code --list-extensions --show-versions
=== Glassworm Malware Returns ===
Glassworm malware returns in third wave of malicious VS Code packages
https://www.bleepingcomputer.com/news/security/glassworm-malware-returns-in-third-wave-of-malicious-vs-code-packages/


== keywords ==
== keywords ==

Latest revision as of 17:21, 3 December 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".

q8zR8Vp.png

.

Can switch live using the setting in the "status bar":

uPREQTr.png

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.


Expand to 2nd level:

  • First expand all:
    • Ctrl+K Ctrl+J
  • Second expand
    • Ctrl+K Ctrl+2

List Plugins and Versions

List VS Code extensions and Versions:

code --list-extensions --show-versions

Glassworm Malware Returns

Glassworm malware returns in third wave of malicious VS Code packages
https://www.bleepingcomputer.com/news/security/glassworm-malware-returns-in-third-wave-of-malicious-vs-code-packages/

keywords