How to open Visual Studio Code from the command line on OSX?

From the Visual Studio Code Setup page: Tip: If you want to run VS Code from the terminal by simply typing ‘code’, VS Code has a command, Shell Command: Install ‘code’ command in PATH, to add ‘code’ to your $PATH variable list. After installation, launch VS Code. Now open the Command Palette (F1 or ⇧+⌘+P … Read more

Why do I keep getting Delete ‘cr’ [prettier/prettier]?

Try setting the “endOfLine”:”auto” in your .prettierrc (or .prettierrc.json) file (inside the object) Or set ‘prettier/prettier’: [ ‘error’, { ‘endOfLine’: ‘auto’, } ] inside the rules object of the eslintrc file. If you are using windows machine endOfLine can be “crlf” basing on your git config.

How to make VS Code treat a file extensions as a certain language?

Update Please note that JoelAZ’s answer is much easier and results in the same setting changes! The answer below is still valid, just more steps & more fuss. Old answer In Visual Studio Code, you can add persistent file associations for language highlighting to your settings.json file like this: // Place your settings in this … Read more

How to comment multiple lines in Visual Studio Code?

Windows: Shift+Alt+A Linux: Shift+Ctrl+A Here you can find all the keyboard shortcuts: Windows VSCode Shortcuts Linux VSCode Shortcuts PS: I prefer Ctrl+Shift+/ for toggling block comments because Ctrl+/ is shortcut for toggling line comments so it’s naturally easier to remember. To do so, just click on the settings icon in the bottom left of the … Read more