# vscode
###### tags: `app`
## 延伸模組
1. 變更註解文字: [Custom Language Properties](https://marketplace.visualstudio.com/items?itemName=ArturoDent.custom-language-syntax)
```
{
"window.zoomLevel": 0.8,
"workbench.startupEditor": "none",
"security.workspace.trust.untrustedFiles": "open",
"workbench.colorCustomizations": {
// "editor.background": "#fae8cb",
// "editor.lineHighlightBackground": "#beaf976b",
},
"editor.links": false,
"editor.inlayHints.fontFamily": "Consolas",
"editor.minimap.enabled": false,
"editor.fontFamily": "Consolas",
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"files.associations": {
"*.md": "markdown"
},
"[markdown]": {
"editor.quickSuggestions": {
"comments": "on",
"strings": "on",
"other": "on"
}
},
"custom-language-properties": {
"bat.comments.lineComment": "::",
},
"workbench.iconTheme": "vs-nomo-dark",
"editor.maxTokenizationLineLength": 1e+36,
"go.toolsManagement.autoUpdate": true,
"editor.unicodeHighlight.invisibleCharacters": false,
"continue.showInlineTip": false
}
```
2. tab到下個引號: [TabOut](https://marketplace.visualstudio.com/items?itemName=albert.TabOut)
3. GetPost模擬: [Thunder Client](https://marketplace.visualstudio.com/items?itemName=rangav.vscode-thunder-client)
4. 多行遞增: [vscode-input-sequence]([vscode-input-sequence](https://marketplace.visualstudio.com/items?itemName=tomoki1207.vscode-input-sequence))
`ctrl + alt + 0`
## theme
`https://vscodethemes.com/?sort=trendingWeekly`
## 設定檔位置
`C:\Users\icps\AppData\Roaming\Code\User\settings.json`
## 隱藏語法錯誤
`"problems.visibility": false,`
## 禁止追蹤超連結
`"editor.links": false,`
## 啟用vscode markdown使用 Code Snippet
```
"[markdown]": {
"editor.quickSuggestions": true
}
```
## 背景顏色變更
```
"workbench.colorCustomizations": {
"editor.background": "#303841",
"editor.lineHighlightBackground": "#4a4747",
},
```
## 常用快捷鍵盤
``` json
// golang
// 按下 Ctrl + Shift + P(或 Cmd + Shift + P),搜尋並選擇 Preferences: Configure User Snippets。
{
"ff": {
"prefix": "ff",
"body": [
"fmt.Println($1)",
],
"description": "ff"
},
"ft": {
"prefix": "ft",
"body": [
"fmt.Sprintf(`$1`, $2)",
],
"description": "ft"
},
"pe": {
"prefix": "pe",
"body": [
"func printError(err error) {",
" if err != nil {",
" fmt.Println(err)",
" }",
"}",
],
"description": "pe"
},
"fore": {
"prefix": "fore",
"body": [
"for ${1:_}, $2 := range $3 {",
" $4",
"}",
],
"description": "fore"
},
"fori": {
"prefix": "fori",
"body": [
"for ${1:idx} := ${2}; ${1:idx} <=${3}; ${1:idx}${4:++} {",
" ${5}",
"}",
],
"description": "fori"
},
"apd": {
"prefix": "apd",
"body": [
"$1 = append($1, $2)"
],
"description": "apd"
},
"nu": {
"prefix": "nu",
"body": [
"var _ = fmt.Println",
],
"description": "nu"
},
"Print to console": {
"prefix": "pm",
"body": [
"package main",
"",
"import (",
")",
"",
"func main() {",
" $1",
"}",
],
"description": "pm"
}
}
```
### 常用
- [TabOut](https://marketplace.visualstudio.com/items?itemName=albert.TabOut) : tab 跳轉
- [thunder-client](https://marketplace.visualstudio.com/items?itemName=rangav.vscode-thunder-client) : get/post
-