Open rogerxu opened 2 years ago
"editor.folderingStrategy": "auto"
F8
and Shift+F8
to navigate through problems.
Trigger Find All References (Shift+F12
) on a symbol and use F4
and Shift+F4
to visit each reference.
Render hint diagnostics with an ellipsis ...
under the start of the word.
"files.maxMemoryForLargeFilesMB": 4096
A Logpoint is a variant of a breakpoint that does not "break" into the debugger but instead logs a message to the console. Logpoints are especially useful for injecting logging while debugging production servers which cannot be stopped.
A Logpoint is represented by a "diamond" shaped icon. Log messages are plain text but can include expressions to be evaluated within curly braces ('{}').
If enabled, the Node debugger automatically attaches to Node.js processes that have been launched in debug mode from VS Code's Integrated Terminal.
To enable the feature, either use the Toggle Auto Attach action or, if the Node debugger is already activated, use the Auto Attach Status Bar item.
{
"label": "dir",
"type": "shell",
"command": "dir",
"args": [
"folder with spaces"
]
}
Ctrl+.
"workbench.colorCustomizations": {
"editorIndentGuide.activeBackground": "#ff0000"
}
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
Shift
+Alt
+Left Mouse Button
Middle Mouse Button
"npm.enableScriptExplorer": true
You can now use /* #region */
and /* #endregion */
to mark a region as foldable in CSS/SCSS/Less. In SCSS/Less, you can also use // #region
and // #endregion
as folding markers.
Retrieve new CSS property data from MDN.
Ctrl
+=
- font zoom inCtrl
+-
- font zoom outCtrl
+0
- font zoom resetUnused variables, parameters, and imports are now greyed out in JavaScript and TypeScript.
It can automatically update import paths when a JavaScript or TypeScript file is moved or renamed.
A new Move to a new file refactoring for JavaScript and TypeScript lets you quickly move classes and functions to their own file.
View > Editor Layout
Errors and warnings are also shown in the Outline view, letting you see at a glance a problem's location.
https://code.visualstudio.com/docs/editor/portable
You can use the UpArrow
(history.showPrevious
) and DownArrow
(history.showNext
) keys to navigate the input boxes in the Search and Problems views and the Find widgets in the Editor, Terminal, and Web views.
editor.hover.enabled
editor.hover.delay
editor.hover.sticky
These commands will stop at camel case positions and at underscores (_
).
Ctrl
+Alt
+➡️
- cursor word part rightCtrl
+Alt
+⬅️
- cursor word part leftCtrl
+Alt
+Backspace
- delete word part leftCtrl
+Shift
+Alt
+Backspace
- delete word part rightWe've "unchained" the floating toolbar by allowing it to be dragged to the editor area.
"breadcrumbs.enabled": true
A light bulb indicating Quick Fixes is shown when you hover or select a problem entry. Quick Fixes can be applied by clicking on the light bulb or by opening the context menu for the problem entry.
This setup does not require Administrator privileges to install. It also provides a smoother background update experience.
Alt+Shift+C
- Copy Absolute PathCtrl+K
Ctrl+Alt+C
- Copy Relative PathYou can get to this action from the context menu (for example, on a tab or a file in the File Explorer) by pressing and holding the Shift
key (Alt
key on macOS) before opening the menu.
You can now open an URI as a folder in VS Code, if there is an extension contributing a FileSystemProvider
for that URI.
If you have RemoteHub
extension installed.
code --folder-uri remotehub://github.com/Microsoft/vscode
Column selection is now supported within the Integrated Terminal via Alt+click
.
Visual Studio Code August 2018
"workbench.settings.editor": "ui"
Focused document symbols are highlighted in the editor.
Visual Studio Code September 2018
Go to Last Edit Location (workbench.action.navigateToLastEditLocation
) was added to quickly navigate to the last location in a file that was edited. The default keybinding is Ctrl+K Ctrl+Q
.
Save without Formatting (workbench.action.files.saveWithoutFormatting
) can be used to save a file without triggering any of the save participants. The default keybinding is Ctrl+K S
.
Suggestions can now be sorted based on their distance to the cursor. Set "editor.suggest.localityBonus": true
git.inputValidationLength
You can now control how branch name validation works with the git.branchValidationRegex
and git.branchWhitespaceChar
settings.
The new Convert to async function suggestion for JavaScript and TypeScript rewrites functions that use .then
Promise chaining to use async
and await
.
In the Markdown preview, clicking on a link to a local file will now open that file's preview.
Visual Studio Code October 2018
Search across files with regex multiline expressions.
"search.usePCRE2": true
"search.showLineNumbers": true
.gitignore
file in searchGit allows you to configure a global gitignore
file using the core.excludesfile
config property. By default, search does not respect the global gitignore
file, but you can now change this by enabling the new setting search.useGlobalIgnoreFiles
.
"workbench.editor.highlightModifiedTabs": true
There is a new setting that controls how symbols in the Breadcrumbs picker are ordered: breadcrumbs.symbolSortOrder
.
Allowed values are:
position
- position in the file (default)name
- alphabetical ordertype
- symbol type orderA setting terminal.integrated.splitCwd
was added to control the current working directory (cwd
) of the new terminal when a terminal is split:
workspaceRoot
- The previous behavior; a new split terminal will use the workspace root as the working directory. In a multi-root workspace, a choice for which root folder to use is offered.initial
- A new split terminal will use the working directory that the parent terminal started with.inherited
- On macOS and Linux, a new split terminal will use the working directory of the parent terminal. On Windows, this behaves the same as initial
.Collapse uninteresting stack frames to clearly see your code.
Displays related resources such as original source files.
For Node.js debugging, we have added a new command Debug: Start Debugging and Stop On Entry (extension.node-debug.startWithStopOnEntry
).
20