How do I move the panel in Visual Studio Code to the right side?

As of October 2018 (version 1.29) the button in @mvvijesh’s answer no longer exists. You now have 2 options. Right click the panel’s toolbar (nowhere else on the panel will work) and choose “move panel right/bottom”: Or choose “View: Toggle Panel Position” from the command palette. Source: VSCode update notes: https://code.visualstudio.com/updates/v1_29#_panel-position-button-to-context-menu

How do I use Bash on Windows from the Visual Studio Code integrated terminal?

Install Git from https://git-scm.com/download/win Open Visual Studio Code and press and hold Ctrl + ` to open the terminal. Open the command palette using Ctrl + Shift + P. Type – Select Default Profile Select Git Bash from the options Click on the + icon in the terminal window The new terminal now will be … Read more

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

Is there a quick change tabs function in Visual Studio Code?

By default, Ctrl+Tab in Visual Studio Code cycles through tabs in order of most recently used. This is confusing because it depends on hidden state. Web browsers cycle through tabs in visible order. This is much more intuitive. To achieve this in Visual Studio Code, you have to edit keybindings.json. Use the Command Palette with … Read more

Show whitespace characters in Visual Studio Code

VS Code 1.6.0 and Greater As mentioned by aloisdg below, editor.renderWhitespace is now an enum taking either none, boundary or all. To view all whitespaces: “editor.renderWhitespace”: “all”, Before VS Code 1.6.0 Before 1.6.0, you had to set editor.renderWhitespace to true: “editor.renderWhitespace”: true

Remove trailing spaces automatically or with a shortcut

You can enable whitespace trimming at file save time from settings: Open Visual Studio Code User Settings (menu File → Preferences → Settings → User Settings tab). Click the icon in the top-right part of the window. This will open a document. Add a new “files.trimTrailingWhitespace”: true setting to the User Settings document if it’s … Read more

How can I customize the tab-to-space conversion factor?

By default, Visual Studio Code will try to guess your indentation options depending on the file you open. You can turn off indentation guessing via “editor.detectIndentation”: false. You can customize this easily via these three settings for Windows in menu File → Preferences → User Settings and for Mac in menu Code → Preferences → … Read more

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