title: Visual Studio Code Flutter Format is Not Working with My Indent Space Value
body: <p>I wasted my all day and i didnt understand what is going on. I'm using Visual Studio Code 1.40.2 and i am learning Flutter 3.60. Sometimes Flutter codes turn unreadable because of indent space. I only wanted to create more space (indent space) but when i use format option, tab size is turning again 2. I looked too many web sites including Stackoverflow and unfortunately i didnt find solution.It turned annoying. This is my config file: (Thanks for help)</p>
  
  <pre><code>{
  "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
  "editor.fontSize": 18,
  "editor.fontFamily": "Consolas, 'Courier New', monospace, ",
  "dart.openDevTools": "flutter",
  "workbench.colorTheme": "Night Owl (No Italics)",
  "workbench.iconTheme": "material-icon-theme",
  "editor.fastScrollSensitivity": 8,
  "editor.tabSize": 8,
  "editor.insertSpaces": true,
  "editor.wordWrap": "on",
  "editor.smoothScrolling": true,
  "editor.cursorBlinking": "expand",
  "editor.cursorSmoothCaretAnimation": true,
  "editor.fontWeight": "400",
  "outline.showFields": false,
  
  "[dart]": {
      "editor.tabSize": 6,
      "editor.insertSpaces": true,
      "editor.detectIndentation": false,
  },
  </code></pre>
  
  <p>}</p>
  
  <ul>
  <li>I changed editor.insertSpaces false and true and nothing changed.</li>
  <li>editor.detectIndentation true or false is not working.</li>
  <li><p>I added this block but didnt worked.</p>
  
  <p>"[flutter]": {
          "editor.tabSize": 6,
          "editor.insertSpaces": true,
          "editor.detectIndentation": false,
      },</p></li>
  </ul>
  
  <p>This is my simple code:</p>
  
  <pre><code>import 'package:flutter/material.dart';
  
  class GridListe extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return GridView.count(
          crossAxisCount: 3,
          primary: false,
          padding: EdgeInsets.all(10),
          crossAxisSpacing: 20,
          mainAxisSpacing: 40,
          children: &lt;Widget&gt;[
              Container(
                  alignment: Alignment.center,
                  color: Colors.teal,
                  child: Text(
                  "Salam",
                  textAlign: TextAlign.center,
                  ),
              ),
          ],
      );
    }
  }
  </code></pre>
  
  <p>When i use format code (Shift + alt + p) Codes indent space or tab size turn 2 and it will make me crazy.</p>
  
  <pre><code>import 'package:flutter/material.dart';
  
  class GridListe extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return GridView.count(
        crossAxisCount: 3,
        primary: false,
        padding: EdgeInsets.all(10),
        crossAxisSpacing: 20,
        mainAxisSpacing: 40,
        children: &lt;Widget&gt;[
          Container(
            alignment: Alignment.center,
            color: Colors.teal,
            child: Text(
              "Salam",
              textAlign: TextAlign.center,
            ),
          ),
        ],
      );
    }
  }
  </code></pre>