feat: add vscode

main
sudo pacman -Syu 2023-08-09 14:18:35 +07:00
parent 981b928116
commit c1949d5194
4 changed files with 242 additions and 0 deletions

149
docs/2023-08-09-vscode.html Normal file
View File

@ -0,0 +1,149 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.2.0/github-markdown.min.css"
/>
<title>haunt98 posts</title>
</head>
<style>
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 45px;
}
@media (max-width: 767px) {
.markdown-body {
padding: 15px;
}
}
</style>
<body class="markdown-body">
<div><a href="index.html">Index</a></div>
<h1>
<a
id="user-content-vscode"
class="anchor"
aria-hidden="true"
href="#vscode"
><span aria-hidden="true" class="octicon octicon-link"></span></a
>VSCode
</h1>
<p>Favortite settings everytime I install VSCode.</p>
<p>
I sort JSON using
<a href="https://r37r0m0d3l.github.io/json_sort/" rel="nofollow">this</a>
(will probably change in the future until I find better tool)
</p>
<div class="highlight highlight-source-json">
<pre>{
<span class="pl-ent">"breadcrumbs.enabled"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"editor.bracketPairColorization.enabled"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"editor.bracketPairColorization.independentColorPoolPerBracketType"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"editor.cursorBlinking"</span>: <span class="pl-s"><span class="pl-pds">"</span>smooth<span class="pl-pds">"</span></span>,
<span class="pl-ent">"editor.cursorSmoothCaretAnimation"</span>: <span class="pl-s"><span class="pl-pds">"</span>on<span class="pl-pds">"</span></span>,
<span class="pl-ent">"editor.foldingImportsByDefault"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"editor.guides.bracketPairs"</span>: <span class="pl-s"><span class="pl-pds">"</span>active<span class="pl-pds">"</span></span>,
<span class="pl-ent">"editor.inlineSuggest.enabled"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"editor.lineNumbers"</span>: <span class="pl-s"><span class="pl-pds">"</span>relative<span class="pl-pds">"</span></span>,
<span class="pl-ent">"editor.minimap.renderCharacters"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"editor.renderLineHighlight"</span>: <span class="pl-s"><span class="pl-pds">"</span>gutter<span class="pl-pds">"</span></span>,
<span class="pl-ent">"editor.smoothScrolling"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"editor.wordWrap"</span>: <span class="pl-s"><span class="pl-pds">"</span>on<span class="pl-pds">"</span></span>,
<span class="pl-ent">"editor.wordWrapColumn"</span>: <span class="pl-c1">120</span>,
<span class="pl-ent">"explorer.confirmDelete"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"explorer.confirmDragAndDrop"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"explorer.sortOrder"</span>: <span class="pl-s"><span class="pl-pds">"</span>type<span class="pl-pds">"</span></span>,
<span class="pl-ent">"extensions.ignoreRecommendations"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"files.autoSave"</span>: <span class="pl-s"><span class="pl-pds">"</span>onFocusChange<span class="pl-pds">"</span></span>,
<span class="pl-ent">"files.exclude"</span>: {
<span class="pl-ent">".idea"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"vendor"</span>: <span class="pl-c1">true</span>
},
<span class="pl-ent">"files.trimTrailingWhitespace"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"files.watcherExclude"</span>: {
<span class="pl-ent">".idea"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"vendor"</span>: <span class="pl-c1">true</span>
},
<span class="pl-ent">"git.mergeEditor"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"problems.decorations.enabled"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"search.exclude"</span>: {
<span class="pl-ent">".idea"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"vendor"</span>: <span class="pl-c1">true</span>
},
<span class="pl-ent">"telemetry.telemetryLevel"</span>: <span class="pl-s"><span class="pl-pds">"</span>off<span class="pl-pds">"</span></span>,
<span class="pl-ent">"terminal.integrated.enablePersistentSessions"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"terminal.integrated.macOptionIsMeta"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"terminal.integrated.persistentSessionReviveProcess"</span>: <span class="pl-s"><span class="pl-pds">"</span>never<span class="pl-pds">"</span></span>,
<span class="pl-ent">"terminal.integrated.showExitAlert"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"window.commandCenter"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"workbench.fontAliasing"</span>: <span class="pl-s"><span class="pl-pds">"</span>auto<span class="pl-pds">"</span></span>
}</pre>
</div>
<p>
Can not go without vim, with extension
<a
href="https://marketplace.visualstudio.com/items?itemName=vscodevim.vim"
rel="nofollow"
>Vim</a
>
</p>
<div class="highlight highlight-source-json">
<pre>{
<span class="pl-ent">"vim.enableNeovim"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"vim.neovimPath"</span>: <span class="pl-s"><span class="pl-pds">"</span>/change/your/path/here<span class="pl-pds">"</span></span>,
<span class="pl-ent">"vim.textwidth"</span>: <span class="pl-c1">120</span>,
<span class="pl-ent">"vim.whichwrap"</span>: <span class="pl-s"><span class="pl-pds">"</span>&lt;,&gt;,[,]<span class="pl-pds">"</span></span>
}</pre>
</div>
<p>
I code in Go, with extension
<a
href="https://marketplace.visualstudio.com/items?itemName=golang.go"
rel="nofollow"
>Go</a
>
</p>
<div class="highlight highlight-source-json">
<pre>{
<span class="pl-ent">"go.inlayHints.parameterNames"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"go.lintOnSave"</span>: <span class="pl-s"><span class="pl-pds">"</span>off<span class="pl-pds">"</span></span>,
<span class="pl-ent">"go.survey.prompt"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"go.toolsManagement.autoUpdate"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"gopls"</span>: {
<span class="pl-ent">"formatting.gofumpt"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"ui.documentation.linksInHover"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"ui.semanticTokens"</span>: <span class="pl-c1">true</span>
}
}</pre>
</div>
<p>
Some love for PlantUML, with extension
<a
href="https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml"
rel="nofollow"
>PlantUML</a
>
</p>
<div class="highlight highlight-source-json">
<pre>{
<span class="pl-ent">"plantuml.exportFormat"</span>: <span class="pl-s"><span class="pl-pds">"</span>png<span class="pl-pds">"</span></span>,
<span class="pl-ent">"plantuml.server"</span>: <span class="pl-s"><span class="pl-pds">"</span>https://www.plantuml.com/plantuml<span class="pl-pds">"</span></span>
}</pre>
</div>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>. Source
code is available on
<a href="https://github.com/haunt98/posts-go">GitHub</a>
</div>
</body>
</html>

View File

@ -62,6 +62,7 @@
<li><a href="2023-07-01-pastebin.html">Pastebin</a></li>
<li><a href="2023-07-02-fandroid.html">F(an) android</a></li>
<li><a href="2023-07-30-cache-shenanigan.html">Cache shenanigan</a></li>
<li><a href="2023-08-09-vscode.html">VSCode</a></li>
</ul>
<div>

View File

@ -0,0 +1,91 @@
# VSCode
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,
"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"
}
```
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
}
}
```
Some love for PlantUML, with extension
[PlantUML](https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml)
```json
{
"plantuml.exportFormat": "png",
"plantuml.server": "https://www.plantuml.com/plantuml"
}
```

View File

@ -28,3 +28,4 @@ This is where I dump my thoughts.
- [Pastebin](2023-07-01-pastebin.html)
- [F(an) android](2023-07-02-fandroid.html)
- [Cache shenanigan](2023-07-30-cache-shenanigan.html)
- [VSCode](2023-08-09-vscode.html)