development:tools:vscode:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
development:tools:vscode:start [2021/12/09 10:55] don.leedevelopment:tools:vscode:start [2025/02/02 14:47] (current) don.lee
Line 9: Line 9:
 <code> <code>
 { {
-  "dart.previewFlutterUiGuides": true, +  "editor.renderWhitespace" : "boundary", 
-  "editor.wordWrap": "on", +  "dart.previewFlutterUiGuides" : true, 
-  "editor.renderWhitespace": "boundary", +  "[javascript]" : { 
-  "editor.tabSize": 2+    "editor.defaultFormatter" : "vscode.typescript-language-features" 
-  "editor.insertSpaces": true+  }
-  "editor.detectIndentation": false+  "workbench.startupEditor" : "newUntitledFile", 
-  "editor.suggestSelection": "first", +  "editor.insertSpaces" : true, 
-  "eslint.validate": [+  "security.workspace.trust.untrustedFiles" : "open"
 +  "editor.accessibilitySupport" : "off"
 +  "editor.tabSize" : 2, 
 +  "files.autoSave" : "onFocusChange"
 +  "editor.suggestSelection" : "first", 
 +  "files.eol" : "\n", 
 +  "eslint.validate" : [
     "javascript",     "javascript",
     "javascriptreact",     "javascriptreact",
     "vue"     "vue"
   ],   ],
-  "files.autoSave": "onFocusChange", +  "workbench.editor.untitled.hint" : "hidden", 
-  "files.eol": "\n",+  "editor.detectIndentation": false, 
 +  "editor.wordWrap" : "on",
   "files.insertFinalNewline": true,   "files.insertFinalNewline": true,
-  "window.zoomLevel": 1, +  "terminal.integrated.env.osx": 
-  "workbench.startupEditor": "newUntitledFile"+    "FIG_NEW_SESSION": "1
 +  }
 +  "files.exclude": 
 +    "**/.classpath": true, 
 +    "**/.project": true, 
 +    "**/.settings": true, 
 +    "**/.factorypath": true 
 +  }, 
 +  "mssql.connections":
 +    { 
 +      "server": "192.168.88.241\\SQLEXPRESS", 
 +      "database": "jccpa", 
 +      "authenticationType": "SqlLogin", 
 +      "user": "jccpa", 
 +      "password": "", 
 +      "emptyPasswordInput": false, 
 +      "savePassword": true 
 +    } 
 +  ], 
 +  "dart.debugExternalPackageLibraries": true, 
 +  "dart.debugSdkLibraries": true, 
 +  "window.zoomLevel": 1
 } }
 </code> </code>
 +
 +==== Newline character ====
 +
 +Please set the newline character as 'LF'
 +
 +Reference: https://wiki.questwork.com/dokuwiki/doku.php?id=zh:staff:mao_joe:about_git_newline:start&s[]=crlf
  
  
Line 42: Line 76:
 Reference: https://code.visualstudio.com/docs/editor/extension-gallery Reference: https://code.visualstudio.com/docs/editor/extension-gallery
  
-  * Auto Close Tag +^ Name ^ Backend ^ Frontend ^ Flutter ^ Design ^ Optional ^ Remarks ^ 
-  Auto Rename Tag +| [[https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag|Auto Close Tag]] | ✅ | ✅ | ✅ | ✅ | | | 
-  C# +| [[https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag|Auto Rename Tag]] | ✅ | ✅ | ✅ | ✅ | | | 
-  Debugger for Chrome +| [[https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp|C#]] | ✅ | ✅ | | | | | 
-  * ENV +| [[https://marketplace.visualstudio.com/items?itemName=Codeium.codeium|Codeium]] | | | | | ✅ | free AI code acceleration plugin for your favorite languages | 
-  [[development:tools:vscode:gulp tasks:|Gulp Tasks]] +| [[https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code|Dart]] | ✅ | | ✅ | ✅ | | | 
-  IntelliSense for CSS class +| __[Deprecated] Debugger for Chrome__ | | | | | | | 
-  * npm +| [[https://marketplace.visualstudio.com/items?itemName=hediet.debug-visualizer|Debug Visualizer]] | | | | | ✅ | A visual watch window that lets you visualize your data structures while debugging. | 
-  * npm IntelliSense +[[https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker|Docker]] | ✅ | | | | | | 
-  * Path IntelliSense +| [[https://marketplace.visualstudio.com/items?itemName=mikestead.dotenv|DotENV]] | ✅ | ✅ | ✅ | ✅ | | | 
-  * Vetur +| [[https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio|Draw.io Integration]] | ✅ | ✅ | ✅ | ✅ | | | 
-  * vscode-icons +| [[https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens|Error Lens]] | | | | | ✅ | | 
-  * Vue 2 Snippets +| [[https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint|ESLint]] | ✅ | ✅ | | ✅ | | | 
-  * webpack +| Fig | ✅ | | | | ✅ | You need to install [[https://fig.io/|Fig]], and then will auto install the vscode extension. Currently only supports Mac, with cross-platform support coming soon. | 
- +| [[https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter|Flutter]] | ✅ | | ✅ | ✅ | | | 
- +| [[https://marketplace.visualstudio.com/items?itemName=GitHub.copilot|GitHub Copilot]] | | | | | ✅ | AI pair programmer. Requires a subscription. | 
- +| [[https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion|IntelliSense for CSS class names in HTML]] | ✅ | ✅ | | ✅ | | | 
- +| [[https://marketplace.visualstudio.com/items?itemName=mathiasfrohlich.Kotlin|Kotlin Language]] | | | ✅ | | | | 
-If you are a Flutter developer, install the following extensions+| [[https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare|Live Share]] | ✅ | ✅ | ✅ | ✅ | | | 
-  * Dart +| [[https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme|Material Icon Theme (File Icon Theme)]] | | | | | ✅ | | 
-  * Flutter +| [[development:tools:vscode:mongodb for vscode:|MongoDB for VS Code]] | ✅ | ✅ | ✅ | | | Except for backend colleagues, please only use it for search purposes as much as possible. | 
-  * Kotlin Language +| [[https://marketplace.visualstudio.com/items?itemName=christian-kohler.npm-intellisense|npm Intellisense]] | ✅ | ✅ | | ✅ | | | 
-  * vscode-flutter-i18n-json +| [[https://marketplace.visualstudio.com/items?itemName=christian-kohler.path-intellisense|Path Intellisense]] | ✅ | ✅ | ✅ | ✅ | | | 
 +| [[https://marketplace.visualstudio.com/items?itemName=ms-mssql.sql-database-projects-vscode|SQL Database Projects]] | ✅ | ✅ | ✅ | | | Just for MSSQL Databases. Set it once and use it in different projects. The disadvantage is that switching tabs will execute sql again. | 
 +| [[https://marketplace.visualstudio.com/items?itemName=mtxr.sqltools|SQLTools]] | ✅ | ✅ | ✅ | | | Need to setup in each projects. Except for backend colleagues, please only use it for search purposes as much as possible. Requires installing corresponding database driver separately | 
 +| [[https://marketplace.visualstudio.com/items?itemName=mtxr.sqltools-driver-mssql|SQLTools Microsoft SQL Server/Azure]] | ✅ | ✅ | ✅ | | | As SQLTools' driver. | 
 +| [[https://marketplace.visualstudio.com/items?itemName=BitLaboratory.task-panel|Tasks Panel]] | ✅ | ✅ | ✅ | ✅ | | | 
 +| [[https://marketplace.visualstudio.com/items?itemName=tldraw-org.tldraw-vscode|tldraw]] | | | | | ✅ | | 
 +| [[https://marketplace.visualstudio.com/items?itemName=octref.vetur|Vetur]] | ✅ | ✅ | | ✅ | | | 
 +| [[https://marketplace.visualstudio.com/items?itemName=esskar.vscode-flutter-i18n-json|vscode-flutter-i18n-json]] | | | ✅ | | | | 
 +| [[https://marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons|vscode-icons]] | | | | | ✅ | | 
 +| [[https://marketplace.visualstudio.com/items?itemName=hollowtree.vue-snippets|Vue 3 Snippets]] | ✅ | ✅ | | ✅ | | A Vue.js 3 And Vue.js 2 Code Snippets Extension | 
 +| [[https://marketplace.visualstudio.com/items?itemName=jeremyrajan.webpack|webpack]] | ✅ | ✅ | | | | |
  
-  * [[https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme | Material Icon Theme (File Icon Theme)]] 
  
 === file icon setting: === === file icon setting: ===
Line 80: Line 122:
  
 <note tip>VS Code allows you to search test or search by Regular Expression</note> <note tip>VS Code allows you to search test or search by Regular Expression</note>
 +
 +==== Example 1 ====
 +
 +  * using regular expression to find and replace all $('...') to $("....")
 +  * escape characters like $ ( with \
 +  * using (.*) to match any characters inside
 +  * using $1 to replace the matched characters
 +
 +<code>
 +\$\('(.*)'\)
 +$("$1")
 +</code>
 +
 +{{:development:tools:vscode:screenshot_2022-07-13_at_1.34.58_pm.png?600|}}
 +
 +==== Example 2 ====
  
 {{:development:tools:vscode:screenshot_2020-06-19_at_11.54.44_am.png?400|}}  {{:development:tools:vscode:screenshot_2020-06-19_at_11.54.44_am.png?400|}} 
Line 346: Line 404:
 ] ]
 </code> </code>
 +
 +===== Troubleshooting =====
 +
 +
 +Problem: Left side bar Explorer icon is missing
 +
 +Solution:
 +
 +Run this in VS Code command palette:
 +<code>
 +View: Reset View Locations
 +</code>
 +
 +
 +
  • development/tools/vscode/start.1639018552.txt.gz
  • Last modified: 2021/12/09 10:55
  • by don.lee