TAB configuration in Vscode
Log in to Json dos Settings
or on the list of Shortcuts
to see what is assigned to Tab. The option is to change the use of Tab in the VS Code settings.
Go on File > Preferences > Settings
and search for "Tab"
and check the "editor.tabSize": 2,
You can also Ctrl+A to select all lines in the file. Then go to ctrl + shift + p > indent
and choose the format you want.
The option is to change setting the use of Tab in the VS Code settings.
You can also open the file keybindings.json
, in the Command Palette (Ctrl+Shift+P)
, Search by Preferences: Open Keyboard Shortcuts (JSON), but it is read-only.
Self-identification
One of the shortcuts to indent in Visual Studio Code
in windows you use Shift + Alt + F
On the Mac is Shift + Option + F
And on Linux it’s Ctrl + Shift + i
Extensions
Depending on the language you are using, you can download some Code Formatter plugin for the specific language you are going to use. Just search the VS Code extension gallery: "SuaLinguagem Formatter"
.
I recommend to Beautify that you can find in the Market Place of VS Code. Beautify
Or Prettier depending on the code you want to format... Prettier
To match with the = in the same space, we also have the extension Better Align that does just that and you can configure on the keyboard the shortcut you want. Documentation
Goes into File > Preferences > Keyboard Shortcuts
And create your shortcut like this for example:
{ "key": "ctrl+alt+i", "command": "wwm.aligncode",
"when": "editorTextFocus && !editorReadonly" }
Does this only happen inside the terminal? Have you installed any format extension or something like that for the terminal? Already logged into the Settings Json or Shortcuts list to see what is assigned to Tab ?
– hugocsl