HookyQR / VSCodeBeautify

Enable js-beautify (https://github.com/beautify-web/js-beautify) in VS Code
MIT License
606 stars 180 forks source link

Doesn't auto-change tab size #377

Open GalGreenfield opened 3 years ago

GalGreenfield commented 3 years ago

Provide the settings you use: (VS Code workspace and user settings, .jsbeautifyrc, .editorconfig) eg.: VS Code settings.json:

{
    // Window //
    "window.zoomLevel": 1,

    // Workbench //
    "workbench.colorTheme": "Default High Contrast",

    // Files //
    "files.autoSave": "afterDelay",

    // Editor //
    "editor.accessibilitySupport": "off",
    "editor.mouseWheelZoom": true,
    "editor.tabSize": 2,
    "editor.tabCompletion": "onlySnippets",
    "editor.formatOnSave": false,
    "emmet.triggerExpansionOnTab": true,

    // Workbench //
    "workbench.colorCustomizations": {
        //"editorIndentGuide.background":"#ffffff75",
        "editorIndentGuide.background": "#ffffff50",
        "editorIndentGuide.activeBackground": "#ffffff75"
    },

    //Font
    "editor.fontLigatures": true,
    "editor.fontFamily": "Fira Code Retina",

    // Languages //
    "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    // "maptz.regionfolder": {
    //     "[javascript]": {                                      //Language selector
    //         "foldStart": "/* #region [NAME] */",              //Text inserted at the start of the fold.
    //         "foldStartRegex": "/* #region*",  ////Regex used to find fold start text.
    //         "foldEnd": "/* #endregion */",                    //Text inserted at the end of the fold
    //         "foldEndRegex": "/* #endregion */",          //Regex used to find fold end text.          
    //                                                     //Use the `[NAME]` placeholder to indicate
    //                                                     //where the cursor should be placed after
    //                                                     //insertion
    //         "disableFolding": false //Turn off #region folding for this language
    //   }
    // }

    // Jupyter //
    "jupyter.alwaysTrustNotebooks": true,

    // Settings Sync //
        "sync.gist": "<my-gist>",
    "sync.autoUpload": true,
    "javascript.updateImportsOnFileMove.enabled": "always",
    "markdown.extension.tableFormatter.normalizeIndentation": true,
}

.jsbeautifyrc - none

Action performed

>beautify file (in the VSCode command thingy)

Expected results

Expected Beautify to indent the file using 2 tabs (defined editor.tabSize)

Actual results

Beautifies the file, but doesn't changes the indention of the file to 2 tabs