posts-go/posts/2023-08-09-vscode.md

93 lines
2.4 KiB
Markdown

# VSCode
![vscode-000](https://raw.githubusercontent.com/haunt98/posts-images/main/vscode-000.jxl)
Favortite settings everytime I install VSCode.
I sort JSON using [this](https://r37r0m0d3l.github.io/json_sort/) (will probably
change in the future until I find better tool)
```json
{
"breadcrumbs.enabled": false,
"editor.bracketPairColorization.enabled": true,
"editor.bracketPairColorization.independentColorPoolPerBracketType": true,
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": "on",
"editor.foldingImportsByDefault": true,
"editor.guides.bracketPairs": "active",
"editor.inlineSuggest.enabled": true,
"editor.lineNumbers": "relative",
"editor.minimap.renderCharacters": false,
"editor.renderLineHighlight": "gutter",
"editor.smoothScrolling": true,
"editor.wordWrap": "on",
"editor.wordWrapColumn": 120,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"explorer.sortOrder": "type",
"extensions.ignoreRecommendations": true,
"files.autoSave": "onFocusChange",
"files.exclude": {
".idea": true,
"vendor": true
},
"files.trimTrailingWhitespace": true,
"files.watcherExclude": {
".idea": true,
"vendor": true
},
"git.mergeEditor": true,
"json.sortOnSave.enable": true,
"problems.decorations.enabled": false,
"search.exclude": {
".idea": true,
"vendor": true
},
"telemetry.telemetryLevel": "off",
"terminal.integrated.enablePersistentSessions": false,
"terminal.integrated.macOptionIsMeta": true,
"terminal.integrated.persistentSessionReviveProcess": "never",
"terminal.integrated.showExitAlert": false,
"window.commandCenter": true,
"workbench.fontAliasing": "auto"
}
```
Experiment alot
```json
{
"editor.experimental.asyncTokenization": true
}
```
Can not go without vim, with extension
[Vim](https://marketplace.visualstudio.com/items?itemName=vscodevim.vim)
```json
{
"vim.enableNeovim": true,
"vim.neovimPath": "/change/your/path/here",
"vim.textwidth": 120,
"vim.whichwrap": "<,>,[,]"
}
```
I code in Go, with extension
[Go](https://marketplace.visualstudio.com/items?itemName=golang.go)
```json
{
"go.inlayHints.parameterNames": true,
"go.lintOnSave": "off",
"go.survey.prompt": false,
"go.toolsManagement.autoUpdate": true,
"gopls": {
"formatting.gofumpt": true,
"ui.documentation.linksInHover": false,
"ui.semanticTokens": true
}
}
```