Skip to content

Instantly share code, notes, and snippets.

@anupvarghese
Last active November 5, 2019 09:25
Show Gist options
  • Save anupvarghese/7f132556f3e612f61a30f71f0da7f554 to your computer and use it in GitHub Desktop.
Save anupvarghese/7f132556f3e612f61a30f71f0da7f554 to your computer and use it in GitHub Desktop.
VS Code settings
  • Step 1: Press cmd + ,
  • Step 2: Find Workbench>Settings: Editor
  • Step 3: Choose json
  • Step 4: Copy and paste the below,
{
    "workbench.colorTheme": "Default Light+",
    "terminal.integrated.shell.osx": "/bin/zsh",
    "git.enableSmartCommit": true,
    "git.confirmSync": false,
    "window.zoomLevel": 0,
    "debug.node.autoAttach": "on",
    "javascript.updateImportsOnFileMove.enabled": "always",
    "workbench.colorCustomizations": {},
    "editor.tabCompletion": "on",
    "typescript.updateImportsOnFileMove.enabled": "always",
    "workbench.editor.showTabs": true,
    "todo-tree.general.tags": [
        "TODO",
        "FIXME",
        "Add xss filtering for content"
    ]
}
  • Step 5: Click on Preferences -> User Snippets
  • Step 6: Paste the following for javascript.json, typescript.json, typescriptreact.json
{
  "Chilli": {
          "prefix": "zc",
          "body": [
                  "🌢"
          ],
          "description": "Log to console"
  },
  "Normal Log": {
          "prefix": "zl",
          "body": [
                  "console.log('$1');"
          ],
          "description": "Log to console"
  },
  "Super Log": {
          "prefix": "ll",
          "body": [
                  "console.log('$1:', $1);"
          ],
          "description": "Log to console"
  },
  "Magic Log": {
          "prefix": "lll",
          "body": [
                  "console.log('*****************');",
                  "console.log('$1:', $1);"
          ],
          "description": "Log to console"
  },
  "Magic A": {
          "prefix": "lla",
          "body": [
                  "console.log('πŸ†πŸ†πŸ†πŸ†πŸ†πŸ†πŸ†πŸ†πŸ†πŸ†πŸ†πŸ†πŸ†πŸ†πŸ†πŸ†πŸ†πŸ†');",
                  "console.log('$1:', $1);"
          ],
          "description": "Log to console"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment