- Published on
vscode
- Authors
- Name
- Timothy Blanks
Create code snippets
in project.code-snippets
Create a snippet to wrap selection in css variable
"var": {
"scope": "typescript,typescriptreact,js,jsx,css",
"prefix": "var",
"body": [
"var($TM_SELECTED_TEXT)"
],
"description": "Wrap in css variable"
}
Keybindings
Prevent closing VS Code when no editor windows as open and cmd+w is pressed
{
"key": "cmd+w",
"command": "-workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
}
List installed extensions
code --list-extensions
Search
Search in ignored files
{
"search.useIgnoreFiles": false
}