Notes on setting up VS Code.
Steps we'll do:
- Installation
- Configuration
Installation
This step is straight forward. Download the installer from here and install it.
Configuration
I use settings.json
to configure the VS Code workspace.
General settings:
- minimap -> disable
- fontLigatures -> enable
- fontSize -> 14
Markdown settings:
- wordWrap - on
Below is how the settings.json
's content looks like:
{
"editor.minimap.enabled": false,
"editor.fontLigatures": true,
"editor.fontSize": 14,
"[markdown]": {
"editor.wordWrap": "on"
}
}
Extensions
I usually maintain the list of extensions useful for the current workspace in a file named extensions.json
placed under .vscode
.
This way VS Code notifies the user about these extensions for this repo when the user checks out the project from GitHub.
Below is my current recommended extensions for this note taking workspace:
{
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
// swiss knife of markdown tools
"yzhang.markdown-all-in-one",
// spell checker
"streetsidesoftware.code-spell-checker"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": [
]
}
Snippets
Snippets are awesome. I use them very often to quickly insert complex markdown syntaxes.
Below are few of them I use:
- expandable code
- expandable table
Place the below json in a file named markdown.code-snippets
under .vscode
folder and these will enabled for markdown file type.
{
"expandable code": {
"prefix": "expandable code",
"description": "inserts expandable source-code section",
"body": [
"<details>",
"<summary>json payload! (click to expand)</summary>",
"",
"```json",
"{",
" \"thank\": \"me later\"",
"}",
"```",
"</details>"
]
},
"expandable table": {
"prefix": "expandable table",
"description": "inserts expandable table section",
"body": [
"<details>",
"<summary>sample table (click to expand)!</summary>",
"",
"| Head1 (Left-aligned) | Head2 (Center-aligned) | Head3 (Right-aligned)",
"| :--- | :---: | ---:",
"| Cell 1:1 | Cell 1:2",
"| Cell 2:1 | Cell 2:2 | Cell 2:3",
"| Cell 3:1 | Cell 3:2 |",
"</details>"
]
}
}
Helpful?
If you think this is helpful 🎈
Don't keep it to yourself 🙊
Share it with your lovely followers at twitter 🗽