Is there a way to change formatting to two spaces instead of four?
-
-
-
Sure, WebStorm reformats your code based on the requirements specified in the Code Style settings (Settings/Preferences | Editor | Code Style), so you can adjust them to make your code look the way you need.
End of conversation
New conversation -
-
-
Isn't Alt called Option on Mac???
-
It's indeed called Option but a lot of Apple keyboards have “alt” printed in the upper right corner above the “option” label, that's why we call it Alt
Maybe you're right, we should start calling it Option instead.
End of conversation
New conversation -
-
-
How do I make sure that only new code is being formatted/rearranged?
-
You can select a new code fragment only and reformat it with the same shortcut. This way, reformatting won't be applied to the rest of the code in your file.
End of conversation
New conversation -
-
-
Why is Prettier on its own special default binding at Ctrl + Shift + Alt + P? For projects with Prettier included, can we get it as an engine for the Ctrl + Alt + L formatting shortcut?
-
I think you can bind Ctrl Alt L can’t you? However, I still keep both because Webstorm Formatting will rearrange imports and eliminate unused imports while Prettier won’t
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.