VS Code – Add a new file under the selected working directory

The cmd+n command is by default bound to workbench.action.files.newUntitledFile but what you want is the command explorer.newFile which by default is not bound to a shortcut. Edit shortcuts file Hit Cmd+Shift+p type key and hit enter on Preferences: Open Keyboard Shortcuts (JSON) This will open keybindings.json file which stores custom keybindings specified by the current … Read more

Why do I keep getting “[eslint] 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 add a right margin to the Visual Studio Code editor?

According to the Visual Studio Code’s user and workspace settings documentation, you can add rulers which mark specified columns. Search for “ruler” in Settings. Click on the link to edit the .json file. Add the property below for rule at 80 characters. Example setting: // Columns at which to show vertical rulers “editor.rulers”: [80],

How to switch between terminals in Visual Studio Code?

Go to File → Preferences → Keyboard Shortcuts or just press Ctrl + k + Ctrl + s. Then click the icon in upper right corner, it opens keybindings.json file: Try adding the following two entries to this file: { “key”: “ctrl+pagedown”, “command”: “workbench.action.terminal.focusNext”, “when”: “terminalFocus” }, { “key”: “ctrl+pageup”, “command”: “workbench.action.terminal.focusPrevious”, “when”: “terminalFocus” } … Read more

Difference between User and System Installer of Visual Studio Code

User setup for Windows Announced last release, the user setup package for Windows is now available on stable. Installing the user setup does not require Administrator privileges as the location will be under your user Local AppData (LOCALAPPDATA) folder. User setup also provides a smoother background update experience. Download User Setup If you are a … Read more

Multirow Tabs for VSCode

UPDATE Feb 2021: In-built support for tabs-wrapping in VSCode v1.53.0+ Just set the workbench.editor.wrapTabs to true in the settings. I still use my configuration mentioned below to make tabs smaller as per my usage. UPDATED 28 March 2020 for VSCode v1.43.2 Fixed CSS for tab-close button Added CSS for smaller bread-crumbs and acion-bar (at the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)