Published on

vscode

Authors
  • avatar
    Name
    Timothy Blanks

Create code snippets

https://www.raymondcamden.com/2019/08/02/creating-a-one-click-visual-studio-code-snippet-to-wrap-content

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
}