public:computer:vscode

Visual Studio Code

  • ⌘ + /; comment in/out
  • ⌘ + ⇧ + p; command palette
  • ⌘ + p; search
  • ∧ + ⇧ + `; Terminal
Key Description
⌥+Arrow Key(←◀,→ ►) Word
⌥+Arrow Key(↑▲, ↓▼) Home, End
∧+Arrow Key Switching between applications
<fn>+↑▲, ↓▼ PageUp, PageDn
⌘+↑▲, ↓▼ Begin of the Text, End of Text
⌘+←◀, →► Begin of the Line, End of Line
⌥+↩ Chinese input
<fn>+⌫ Work as MS Windows delete key
Action Key Descriptions
Move Backward by Word ⌥+←
Move Forward by Word ⌥+→
Home (Begin of the Line) ⌥+↑
End (End of the Line) ⌥+↓
PageUp <fn>+↑ doesn't follow carrot
PageDown <fn>+↓ doesn't follow carrot
PageUp ⌥+<fn>+↑ follow carrot
PageDown ⌥+<fn>+↓ follow carrot
Move to Begin of the Text ⌘+↑
Move to End of the Text ⌘+↓
Move to Begin of the Line ⌘+←
Move to End of the Line ⌘+→
Change to Hanja(Chinese input) ⌥+↩
Delete (Work as a MS Windows delete key) <fn>+⌫
· 2024/03/26 22:54 · alex
  1. Install JDK
  2. Install VS Code Extentions
  • Run with Live Server; CTRL + ALT + N
  • Run with F5; .vscode
    • launch.json
      {
          "version": "0.2.0",
          "configurations": [
              {
                  "type": "node",
                  "request": "launch",
                  "name": "Launch Program",
                  "program": "${workspaceFolder}/typescript/out/hello.js",
                  "outFiles": ["${workspaceFolder}/**/*.js"]
              }
          ]
      }
      
    • tasks.json; Start ts-watch, CTRL + SHIFT + B
      {
          "version": "2.0.0",
          "tasks": [
              {
                  "type": "typescript",
                  "tsconfig": "tsconfig.json",
                  "option": "watch",
                  "problemMatcher": [
                      "$tsc-watch"
                  ],
                  "group": "build"
              }
          ]
      }
      
  • Run with nodemon (live compile environment);
    $ npm install ts-node --save-dev
    $ npm install nodemon --save-dev
    
    • package.json
      {
        "name": "typescript",
        "version": "1.0.0",
        "description": "",
        "main": "index.js",
        "scripts": {
          "start": "npm run build:live",
          "build": "tsc -p .",
          "build:live": "nodemon --watch '*.ts' --exec 'ts-node' hello.ts",
          "test": "echo \"Error: no test specified\" && exit 1"
        },
        "keywords": [],
        "author": "",
        "license": "ISC",
        "devDependencies": {
          "nodemon": "^2.0.20",
          "ts-node": "^9.1.1",
          "typescript": "^4.2.4"
        }
      }
      
        

Vue.js

React.js


  • public/computer/vscode.txt
  • Last modified: 2023/01/03 14:57
  • by alex