0

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?

LazyOne
  • 158,824
  • 45
  • 388
  • 391
JoonT
  • 1,106
  • 1
  • 13
  • 29

1 Answers1

2

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

LazyOne
  • 158,824
  • 45
  • 388
  • 391
  • First question has solved, but occurred another problem. when I write in single quote area, It create double quote automatically. like so ... – JoonT Nov 06 '17 at 03:22
  • @JoonT Not sure what you mean (not a JS/React person myself) .. but check https://stackoverflow.com/a/39779498/783119 – LazyOne Nov 06 '17 at 09:23
  • it's not work.. when I type attribute, it create pair single quote. it's ok until here. but when I type something in pair single quote, it create double quote automatically.. like what I said above.. – JoonT Nov 07 '17 at 01:11
  • and I have another problem. when I change the language ReactJs to ECMAScript6 in Languages & Frameworks | JavaScript. It's work. but if application reboots or changes another options, it create curly brace automatically again.. – JoonT Nov 07 '17 at 01:18