VSCode
Work In Progress
Unclassified, WIP
- Command Line
- Install Extension
code --install-extension xxx.yyy
- Install Extension
- [[Docker]]
- SSH
- Connect to Docker engine running on a remote machine
sc config ssh-agent start=auto
net start ssh-agent
- Connect to Docker engine running on a remote machine
- SSH
- The Era of Visual Studio Code | Roben Kleene
- viatsko/awesome-vscode: 🎨 A curated list of delightful VS Code packages and resources.
- Tips
- Language Server
- C++
- Code Navigation
- Human Readable Formatting
- Collapse / Fold All
- keyboard shortcuts - Collapse all methods in Visual Studio Code - Stack Overflow
- Fold All:
- Windows:
Ctrl + K Ctrl + 0
(zero) - Mac:
⌘ + K + 0
- Windows:
- Unfold All:
- Windows:
Ctrl + K Ctrl + J
- Mac:
⌘ + K + J
- Windows:
- To see all available shortcuts in the editor:
- Windows:
Ctrl + K + S
- Mac:
⌘ + K + S
- Windows:
- Fold All:
- keyboard shortcuts - Collapse all methods in Visual Studio Code - Stack Overflow
- Collapse / Fold All
- Terminal 乱码
- Not working
chcp 65001
- win10 下,cmd,power shell 设置默认编码为‘UTF-8’? - 知乎
'$PSDefaultParameterValues = @{''Out-File:encoding''=''utf8''}' > $PROFILE
- 默认不是powershell而是cmd
- GBK -> UTF-8 -> GBK
- Not working
- Sync Settings
- Tips & Tricks
- Editing Harks
- IntelliSense
- IntelliSense in Visual Studio Code
- Suggestions
Ctrl+Space
- Features
Tab
orEnter
- Typs
- Settings
{ // Controls if quick suggestions should show up while typing "editor.quickSuggestions": { "other": true, "comments": false, "strings": false }, // Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character. "editor.acceptSuggestionOnCommitCharacter": true, // Controls if suggestions should be accepted on 'Enter' - in addition to 'Tab'. Helps to avoid ambiguity between inserting new lines or accepting suggestions. The value 'smart' means only accept a suggestion with Enter when it makes a textual change "editor.acceptSuggestionOnEnter": "on", // Controls the delay in ms after which quick suggestions will show up. "editor.quickSuggestionsDelay": 10, // Controls if suggestions should automatically show up when typing trigger characters "editor.suggestOnTriggerCharacters": true, // Controls if pressing tab inserts the best suggestion and if tab cycles through other suggestions "editor.tabCompletion": "off", // Controls whether sorting favours words that appear close to the cursor "editor.suggest.localityBonus": true, // Controls how suggestions are pre-selected when showing the suggest list "editor.suggestSelection": "recentlyUsed", // Enable word based suggestions "editor.wordBasedSuggestions": true, // Enable parameter hints "editor.parameterHints.enabled": true, }
- Locality Bonus
- closer to the cursor
editor.suggest.localityBonus
- Key bindings
- Suggestions
- IntelliSense in Visual Studio Code
- [[Code Navigation]]
- https://code.visualstudio.com/docs/editor/editingevolved#_go-to-definition
F12
- DefinitionCtrl+F12
- ImplementationShift+F12
- ReferenceCtrl+Alt+Click
- open the definition to the sidebar- avoid losing focus
- https://code.visualstudio.com/docs/editor/editingevolved#_go-to-definition
- [[Debugging]]
- Launch configurations
- Debugging in Visual Studio Code
{ "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Launch Program", "skipFiles": ["<node_internals>/**"], "program": "${workspaceFolder}\\app.js" } ] }
- Debugging in Visual Studio Code
- Data inspection
- Launch configurations