1. 라이브 템플릿


Snippets: Configure User Snippets


{
// Place your snippets for typescript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Custom": {
"jest": {
"prefix": ["test"],
"body": [
"import ${TM_FILENAME_BASE/([^.]+).*/${1:/upcase}/} from \"../src/${TM_FILENAME_BASE/([^.]+).*/${1:/upcase}/}\"",
"",
"test(\"${TM_FILENAME_BASE/([^.]+).*/${1:/upcase}/}\", () => {",
" expect(${TM_FILENAME_BASE/([^.]+).*/${1:/upcase}/}()).toEqual();",
"});"
],
"description": "TypeScript Jest"
}
}
}


2. 설정


Preferences: Open User settings (JSON)


저는 알파벳 순으로 정리해둠



{
"[java]": {
"editor.defaultFormatter": "redhat.java"
},
"[markdown]": {
"editor.defaultFormatter": "vscode.markdown-language-features",
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
}
},
"[plaintext]": {
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
}
},
"editor.accessibilitySupport": "off",
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontFamily": "'D2Coding ligature'",
"editor.fontLigatures": true,
"editor.fontSize": 20,
"editor.formatOnSave": true,
"editor.linkedEditing": true,
"editor.quickSuggestions": {
"strings": "on"
},
"editor.tabSize": 2,
"editor.wordWrap": "on",
"explorer.compactFolders": false,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"extensions.ignoreRecommendations": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"liveServer.settings.donotShowInfoMsg": true,
"security.workspace.trust.untrustedFiles": "open",
"terminal.integrated.defaultProfile.windows": "Git Bash",
"terminal.integrated.enableMultiLinePasteWarning": false,
"terminal.integrated.fontFamily": "monospace",
"terminal.integrated.profiles.windows": {
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
},
"Git Bash": {
"source": "Git Bash"
},
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Ubuntu-20.04 (WSL)": {
"path": "C:\\WINDOWS\\System32\\wsl.exe",
"args": ["-d", "Ubuntu-20.04"]
}
},
"typescript.updateImportsOnFileMove.enabled": "always",
"workbench.colorTheme": "GitHub Dark Default",
"workbench.editor.untitled.hint": "hidden",
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "none"
}



3. .vscode > settings.json > files.exclude


explorer에서 필요 없는 거 안 보여준다


{
"files.exclude": {
}
}


이상