Skip to content

Setting up VSCode on an M1 Mac

Posted on:January 7, 2021 at 09:30 AM

Config

Settings

Accessing Settings

Settings for VSCode outside of it

My Configs

settings.json

{
  "vim.leader": ",",
  "vim.insertModeKeyBindings": [
    {
      "before": ["k", "j"],
      "after": ["<Esc>"]
    }
  ],
  "workbench.colorTheme": "Solarized Light",
  "terminal.external.osxExec": "iTerm.app",
  "editor.fontFamily": "Hack Nerd Font Mono",
  "editor.wordWrap": "on",
  "editor.inlineHints.fontFamily": "Hack Nerd Font Mono",
  "editor.cursorSmoothCaretAnimation": true,
  "editor.formatOnPaste": true,
  "editor.formatOnSave": true,
  "window.autoDetectColorScheme": true,
  "workbench.preferredLightColorTheme": "Solarized Light",
  "workbench.preferredDarkColorTheme": "Solarized Dark",
  "workbench.editorAssociations": [
    {
      "viewType": "jupyter-notebook",
      "filenamePattern": "*.ipynb"
    }
  ],
  "python.languageServer": "Pylance",
  "python.defaultInterpreterPath": "~/.pyenv/versions/3.9.1/bin/python",
  "python.formatting.provider": "black",
  "python.formatting.blackPath": "/Users/rnash/.pyenv/shims/black"
}

keybindings.json

// Place your key bindings in this file to override the defaults
[
  {
    "key": "alt+j",
    "command": "workbench.action.terminal.focus",
    "when": "!terminalFocus"
  },
  {
    "key": "alt+k",
    "command": "workbench.action.focusActiveEditorGroup",
    "when": "terminalFocus"
  },
  {
    "key": "enter",
    "command": "acceptSelectedSuggestion",
    "when": "suggestWidgetVisible && textInputFocus"
  },
  {
    "key": "tab",
    "command": "selectNextSuggestion",
    "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
  },
  {
    "key": "shift+tab",
    "command": "selectPrevSuggestion",
    "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
  }
]

Issues