Skip to content

Latest commit

 

History

History
120 lines (84 loc) · 2.62 KB

vscode.md

File metadata and controls

120 lines (84 loc) · 2.62 KB

Visual Studio Code Installation

Installation

Download and Install Visual Studio Code or use Chocolatey:

https://code.visualstudio.com/Download
https://code.visualstudio.com/docs/setup/linux
or

choco install vscode

Settings

Adjust the following settings corresponding to your preferences:

File > Preferences > Keyboard Shortcuts
# or install a known ones (e.g. IntelliJ)
File > Preferences > Keymaps

Optional settings

File > Preferences > Settings (Ctrl+,)
// Do not close file when opening another one
"workbench.editor.enablePreviewFromQuickOpen": false,
"workbench.editor.enablePreview": false,

// Do not show mini code preview on the right side
"editor.minimap.enabled": false,

// Do not automatically commmit unstaged files
"git.enableSmartCommit": false,

// Privacy
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"update.enableWindowsBackgroundUpdates": false

Required Extensions

The following extensions (or any alternatives) should be installed.

Eslint Code Formatter

code --install-extension dbaeumer.vscode-eslint
code --install-extension esbenp.prettier-vscode

Activate vs-code-prettier as default formatter. VSCode should ask you, otherwise set it manually:

"[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
}

Until now Lunes uses an external repo for the eslint configuration. After Checking out the repo allow eslint to use the npm module in node_modules/eslint.
The eslint extension button is in the bottom right corner of the IDE

Recommended Extensions

Git History

(Alternative: Git Lens)

code --install-extension donjayamanne.githistory

... Save your ass

(Changes History)

code --install-extension xyz.local-history

Set path in settings:

"local-history.path": "<Path outside of project to not use .gitignore>",

Remote WSL

Use Visual Studio Code in Windows as GUI for code running in WSL
https://code.visualstudio.com/docs/remote/wsl

code --install-extension ms-vscode-remote.remote-wsl

.md-Files

use button in top right corner see the formatted markup

code --install-extension yzhang.markdown-all-in-one