> For the complete documentation index, see [llms.txt](https://xmlking.gitbook.io/macos-setup/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xmlking.gitbook.io/macos-setup/applications/vscode.md).

# VSCode

## Prerequisites

Fonts should be installed as described in [Essentials](/macos-setup/getting-started/essentials.md#Fonts) section.

## Install

```shell
brew install --cask --appdir=~/Applications visual-studio-code
```

### Plugins

Useful extensions:

* [Code Spell Checker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker)
* Git
  * [GitLens](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens)
  * [GitHub Pull Requests and Issues](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github)
  * [GitHub Theme](https://marketplace.visualstudio.com/items?itemName=GitHub.github-vscode-theme) - Choose either **Light** & **Dark** themes
* Highlight Matching Tag
* [EditorConfig for VS Code](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig)
* [Material Icon Theme](https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme)
* Code formatter
  * [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
* [Markdown All in One](https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one)
* [GitHub Copilot](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot)
  * [Getting Started with GitHub Copilot in Visual Studio Code](https://github.com/github/copilot-docs/blob/main/docs/visualstudiocode/gettingstarted.md)
* Drawing
* [excalidraw Editor](https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor)
* [Draw.io Integration](https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio)
* Internationalization and localization (i18n)
  * [inlang – i18n](https://marketplace.visualstudio.com/items?itemName=inlang.vs-code-extension)
* Monorepo
  * [Monorepo Workspace](https://marketplace.visualstudio.com/items?itemName=folke.vscode-monorepo-workspace) helps to pick Workspaces To Focus On
* ESLint

**List VS Code extension:**

```shell
code --list-extensions | xargs -L 1 echo code --install-extension
```

installing plugins via command line

```shell
code --install-extension GraphQL.vscode-graphql
```

## Customizations

VSCode Settings. Use settings from [.vscode](https://github.com/xmlking/macbooksetup/blob/main/apps/vscode/README.md) for new project.

### Fonts

Assume you installed **MesloLGM Nerd Font Mon font**\[font-meslo-lg-nerd-font] from [essentials](/macos-setup/getting-started/essentials.md) guide.\
In your project's `.vscode/settings.json` file, set **fontFamily** for *editor* and *terminal* as shown below.

```json5
////////// Editor //////////
"editor.fontFamily": " SourceCodePro-Regular, FiraCode-Retina, Menlo",
"editor.fontLigatures": true,
////////// Terminal //////////
"terminal.integrated.fontFamily": "MesloLGM Nerd Font Mono",
```

### Tips

#### General key bindings

| Key                      | Command |
| ------------------------ | ------- |
| `option` + `shift` + `F` | Format  |
|                          |         |
|                          |         |
|                          |         |
|                          |         |

#### Markdown key bindings

| Key                   | Command                      |
| --------------------- | ---------------------------- |
| Ctrl/Cmd + B          | Toggle bold                  |
| Ctrl/Cmd + I          | Toggle italic                |
| Ctrl/Cmd + Shift + ]  | Toggle heading (uplevel)     |
| Ctrl/Cmd + Shift + \[ | Toggle heading (downlevel)   |
| Opt + C               | Check/Uncheck task list item |
| Ctrl/Cmd + Shift + V  | Toggle preview               |
|                       |                              |

## References

* [VS code setup for Svelte](https://webjeda.com/blog/vscode-setup-svelte)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xmlking.gitbook.io/macos-setup/applications/vscode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
