mihai-vlc / sublime-jsfmt

jsfmt plugin for Sublime Text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't change from singlequoted to doublequoted

0x4139 opened this issue · comments

i am not able to change for example from 'use strict' to "use strict" using the formatter even if i activated the plugin and everything.

I just tested on my PC and it seems to work fine.

Make sure your settings look similar to this:

{
    "autoformat": false,
    "options":
    {
        "indent":
        {
            "value": "    "
        },
        "plugins":
        [
            "esformatter-quotes"
        ],
        "quotes":
        {
            "type": "double"
        }
    }
}

If it still doesn't work please post more details about your system: your OS, sublime text version, and your settings.

Thanks, it seems i wasn't containing them in "options", any tips on how to make this work for *.jsx files?

we have a settings for enabling custom extensions for autoformat

    // array of extensions for autoformat
    "extensions": ["js", "sublime-settings"],

you can find more info about all the available options in the readme file