Search code examples
webstormcurly-braces

Auto curly braces in WebStorm, check for modification


I am using WebStorm to make React application.

Firstly, when I use JSX tag attribute, it automatically creates curly brace. How can I disable this option?

Secondly, when our source code was modified, many IDE shows us that this file is changed. In VSCode it's done like this:

but WebStorm is not. So I can't know whether this file has changed or not. How can I set this?


Solution

  • Firstly, when I use JSX tag attribute, it automatically creates curly brace. How can I disable this option?

    See https://stackoverflow.com/a/46949738/783119 -- should explain the situation (so I do not repeat the same here)

    Secondly, when our source code was modified, many IDE shows us that this file is changed.

    1. Settings/Preferences
    2. Editor | General | Editor Tabs
    3. Enable Mark modified tabs with asterisk option.

    enter image description here