Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vnext-nguyen-quyen/e1f99e8a9bf63007cbf414823d0d725e to your computer and use it in GitHub Desktop.
Save vnext-nguyen-quyen/e1f99e8a9bf63007cbf414823d0d725e to your computer and use it in GitHub Desktop.
Extension for VS Code
1. Shortcut
Chỉnh Ctrl + D thành duplicate row.
Alt + Shift + F: format vue file from vue file.
2. Extensions
- Live Server: https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer
- Auto closed tag
- Auto import
- Auto rename tag
- Bookmarks
- Bracket Pair Colorizer
- Code Spell Checker
- EditorConfig for VS Code
- GitLens — Git supercharged
- Import Cost
- npm Intellisense
- Path Intellisense
- vscode-icons
- Vetur
- Vue peek
- Vue 3 snippets
- ESLint
- Prettier - Code formatter
- Lint-staged
- Husky
https://viblo.asia/p/nang-cao-chat-luong-code-va-hieu-qua-lam-viec-nhom-voi-husky-lint-staged-commitlint-4dbZNnMnZYM]
=====User setting=====
{
// Format settings
"editor.tabSize": 2,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.organizeImports": false
},
// ESLint settings
// Avoid default Vetur template validation
"vetur.validation.template": false,
"eslint.validate": ["javascript", "javascriptreact", "vue"],
"eslint.packageManager": "npm",
"eslint.format.enable": true,
"eslint.alwaysShowStatus": true,
// Prettier integrate with eslint
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.autoSave": "afterDelay"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment