Skip to main content
formatting
Source Link
Alex Logvin
  • 921
  • 1
  • 12
  • 15

If you want to use tabs instead of spaces

Try this:

  1. Go to FilePreferencesSettings or just press Ctrl + ,
  2. In the Search settings bar on top insert editor.insertSpaces
  3. You will see something like this: Editor: Insert Spaces and it will be probably checked. Just uncheck it as show in image below

Editor: Insert Spaces

  1. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)

If it doesn't worked try this:

It's probably because of installed plugin JS-CSS-HTML Formatter

(You can check it by going to FilePreferencesExtensions or just pressing Ctrl + Shift + X, in the Enabled list you will find JS-CSS-HTML Formatter)

If so you can modify this plugin:

  1. Press F1 ➤ type Formatter config ➤ press Enter (it will open the file formatter.json)

  2. Modify the file like this:

     4| "indent_size": 1, 5| "indent_char": "\t" ——| 24| "indent_size": 1, 25| "indentCharacter": "\t", 26| "indent_char": "\t", ——| 34| "indent_size": 1, 35| "indent_char": "\t", 36| "indent_character": "\t" 
  3. Save it (Go to FileSave or just press Ctrl + S)

    Press F1 ➤ type Formatter config ➤ press Enter (it will open the file formatter.json)
  4. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)

    Modify the file like this:
 4| "indent_size": 1, 5| "indent_char": "\t" ——| 24| "indent_size": 1, 25| "indentCharacter": "\t", 26| "indent_char": "\t", ——| 34| "indent_size": 1, 35| "indent_char": "\t", 36| "indent_character": "\t" 
  1. Save it (Go to FileSave or just press Ctrl + S)
  2. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)

If you want to use tabs instead of spaces

Try this:

  1. Go to FilePreferencesSettings or just press Ctrl + ,
  2. In the Search settings bar on top insert editor.insertSpaces
  3. You will see something like this: Editor: Insert Spaces and it will be probably checked. Just uncheck it as show in image below

Editor: Insert Spaces

  1. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)

If it doesn't worked try this:

It's probably because of installed plugin JS-CSS-HTML Formatter

(You can check it by going to FilePreferencesExtensions or just pressing Ctrl + Shift + X, in the Enabled list you will find JS-CSS-HTML Formatter)

If so you can modify this plugin:

  1. Press F1 ➤ type Formatter config ➤ press Enter (it will open the file formatter.json)

  2. Modify the file like this:

     4| "indent_size": 1, 5| "indent_char": "\t" ——| 24| "indent_size": 1, 25| "indentCharacter": "\t", 26| "indent_char": "\t", ——| 34| "indent_size": 1, 35| "indent_char": "\t", 36| "indent_character": "\t" 
  3. Save it (Go to FileSave or just press Ctrl + S)

  4. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)

If you want to use tabs instead of spaces

Try this:

  1. Go to FilePreferencesSettings or just press Ctrl + ,
  2. In the Search settings bar on top insert editor.insertSpaces
  3. You will see something like this: Editor: Insert Spaces and it will be probably checked. Just uncheck it as show in image below

Editor: Insert Spaces

  1. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)

If it doesn't worked try this:

It's probably because of installed plugin JS-CSS-HTML Formatter

(You can check it by going to FilePreferencesExtensions or just pressing Ctrl + Shift + X, in the Enabled list you will find JS-CSS-HTML Formatter)

If so you can modify this plugin:

  1. Press F1 ➤ type Formatter config ➤ press Enter (it will open the file formatter.json)
  2. Modify the file like this:
 4| "indent_size": 1, 5| "indent_char": "\t" ——| 24| "indent_size": 1, 25| "indentCharacter": "\t", 26| "indent_char": "\t", ——| 34| "indent_size": 1, 35| "indent_char": "\t", 36| "indent_character": "\t" 
  1. Save it (Go to FileSave or just press Ctrl + S)
  2. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)
formatting
Source Link
Alex Logvin
  • 921
  • 1
  • 12
  • 15

If you want to use tabs instead of spaces

Try this:

  1. Go to FilePreferencesSettings or just press Ctrl Ctrl + ,+ ,
  2. In the Search settings bar on top insert editor.insertSpaces
  3. You will see something like this: Editor: Insert Spaces and it will be probably checked. Just uncheck it as show in image below

Editor: Insert Spaces

  1. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press EnterEnter)

If it doesn't worked try this:

It's probably because of installed plugin JS-CSS-HTML Formatter

(You can check it by going to FilePreferencesExtensions or just pressing Ctrl Ctrl + Shift + X+ Shift + X, in the Enabled list you will find JS-CSS-HTML Formatter)

If so you can modify this plugin:

  1. Press F1F1 ➤ type Formatter config ➤ press EnterEnter (it will open the file formatter.json)

  2. Modify the file like this:

     4| "indent_size": 1, 5| "indent_char": "\t" ——| 24| "indent_size": 1, 25| "indentCharacter": "\t", 26| "indent_char": "\t", ——| 34| "indent_size": 1, 35| "indent_char": "\t", 36| "indent_character": "\t" 
  3. Save it (Go to FileSave or just press Ctrl Ctrl + S+ S)

  4. Reload Visual Studio Code (Press F1F1 ➤ type reload window ➤ press EnterEnter)

If you want to use tabs instead of spaces

Try this:

  1. Go to FilePreferencesSettings or just press Ctrl + ,
  2. In the Search settings bar on top insert editor.insertSpaces
  3. You will see something like this: Editor: Insert Spaces and it will be probably checked. Just uncheck it as show in image below

Editor: Insert Spaces

  1. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)

If it doesn't worked try this:

It's probably because of installed plugin JS-CSS-HTML Formatter

(You can check it by going to FilePreferencesExtensions or just pressing Ctrl + Shift + X, in the Enabled list you will find JS-CSS-HTML Formatter)

If so you can modify this plugin:

  1. Press F1 ➤ type Formatter config ➤ press Enter (it will open the file formatter.json)

  2. Modify the file like this:

     4| "indent_size": 1, 5| "indent_char": "\t" ——| 24| "indent_size": 1, 25| "indentCharacter": "\t", 26| "indent_char": "\t", ——| 34| "indent_size": 1, 35| "indent_char": "\t", 36| "indent_character": "\t" 
  3. Save it (Go to FileSave or just press Ctrl + S)

  4. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)

If you want to use tabs instead of spaces

Try this:

  1. Go to FilePreferencesSettings or just press Ctrl + ,
  2. In the Search settings bar on top insert editor.insertSpaces
  3. You will see something like this: Editor: Insert Spaces and it will be probably checked. Just uncheck it as show in image below

Editor: Insert Spaces

  1. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)

If it doesn't worked try this:

It's probably because of installed plugin JS-CSS-HTML Formatter

(You can check it by going to FilePreferencesExtensions or just pressing Ctrl + Shift + X, in the Enabled list you will find JS-CSS-HTML Formatter)

If so you can modify this plugin:

  1. Press F1 ➤ type Formatter config ➤ press Enter (it will open the file formatter.json)

  2. Modify the file like this:

     4| "indent_size": 1, 5| "indent_char": "\t" ——| 24| "indent_size": 1, 25| "indentCharacter": "\t", 26| "indent_char": "\t", ——| 34| "indent_size": 1, 35| "indent_char": "\t", 36| "indent_character": "\t" 
  3. Save it (Go to FileSave or just press Ctrl + S)

  4. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)

formatting
Source Link
Alex Logvin
  • 921
  • 1
  • 12
  • 15

If you want to use tabs instead of spaces

Try this:

  1. Go to FileFilePreferencesPreferencesSettingsSettings or just press Ctrl + ,Ctrl + ,
  2. In the Search settings bar on top insert editor.insertSpaces
  3. You will see something like this: Editor: Insert Spaces and it will be probably checked. Just uncheck it as show in image below

enter image description hereEditor: Insert Spaces

  1. Reload Visual Studio Code (Press F1F1 ➤ type reload window ➤ press EnterEnter)

If it doesn't worked try this:

It's probably because of installed plugin JS-CSS-HTML Formatter

(You can check it by going to FileFilePreferencesPreferencesExtensionsExtensions or just pressing Ctrl + Shift + XCtrl + Shift + X, in the Enabled list you will find JS-CSS-HTML Formatter)

If so you can modify this plugin:

  1. Press F1F1 ➤ type Formatter config ➤ press EnterEnter (it will open the file formatter.jsonformatter.json)

  2. Modify the file like this:

     4| "indent_size": 1, 5| "indent_char": "\t" ——| 24| "indent_size": 1, 25| "indentCharacter": "\t", 26| "indent_char": "\t", ——| 34| "indent_size": 1, 35| "indent_char": "\t", 36| "indent_character": "\t" 
  3. Save it (Go to FileFileSaveSave or just press Ctrl + SCtrl + S)

  4. Reload Visual Studio Code (Press F1F1 ➤ type reload window ➤ press EnterEnter)

If you want to use tabs instead of spaces

Try this:

  1. Go to FilePreferencesSettings or just press Ctrl + ,
  2. In the Search settings bar on top insert editor.insertSpaces
  3. You will see something like this: Editor: Insert Spaces and it will be probably checked. Just uncheck it as show in image below

enter image description here

  1. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)

If it doesn't worked try this:

It's probably because of installed plugin JS-CSS-HTML Formatter

(You can check it by going to FilePreferencesExtensions or just pressing Ctrl + Shift + X, in the Enabled list you will find JS-CSS-HTML Formatter)

If so you can modify this plugin:

  1. Press F1 ➤ type Formatter config ➤ press Enter (it will open the file formatter.json)

  2. Modify the file like this:

     4| "indent_size": 1, 5| "indent_char": "\t" ——| 24| "indent_size": 1, 25| "indentCharacter": "\t", 26| "indent_char": "\t", ——| 34| "indent_size": 1, 35| "indent_char": "\t", 36| "indent_character": "\t" 
  3. Save it (Go to FileSave or just press Ctrl + S)

  4. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)

If you want to use tabs instead of spaces

Try this:

  1. Go to FilePreferencesSettings or just press Ctrl + ,
  2. In the Search settings bar on top insert editor.insertSpaces
  3. You will see something like this: Editor: Insert Spaces and it will be probably checked. Just uncheck it as show in image below

Editor: Insert Spaces

  1. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)

If it doesn't worked try this:

It's probably because of installed plugin JS-CSS-HTML Formatter

(You can check it by going to FilePreferencesExtensions or just pressing Ctrl + Shift + X, in the Enabled list you will find JS-CSS-HTML Formatter)

If so you can modify this plugin:

  1. Press F1 ➤ type Formatter config ➤ press Enter (it will open the file formatter.json)

  2. Modify the file like this:

     4| "indent_size": 1, 5| "indent_char": "\t" ——| 24| "indent_size": 1, 25| "indentCharacter": "\t", 26| "indent_char": "\t", ——| 34| "indent_size": 1, 35| "indent_char": "\t", 36| "indent_character": "\t" 
  3. Save it (Go to FileSave or just press Ctrl + S)

  4. Reload Visual Studio Code (Press F1 ➤ type reload window ➤ press Enter)

added 28 characters in body
Source Link
Alex Logvin
  • 921
  • 1
  • 12
  • 15
Loading
Source Link
Alex Logvin
  • 921
  • 1
  • 12
  • 15
Loading