When using the shortcut for commenting a line of code (command /
on a Mac), the code line gets a //
added in front of it. (Pointing out the obvious for topic clarification).
Stylistically I would like to add a space between the //
and the start of some code that I'm commenting out. i.e. make the comment leader when added // function foo() {
rather than //function foo() {
which is the default.
What I can't find is how to change this setting in JetBrains WebStorm (I've already tried trolling their website and the preferences etc with no success) - I've also run many searches (my google-foo is terrible!) but have yet to find how to change this setting.
Anybody know how (or if?) this setting can be changed?
As far as I'm aware it's not possible.
https://youtrack.jetbrains.com/issue/IDEA-141701 -- watch this ticket (star/vote/comment) to get notified on progress.
UPDATE (20th April, 2016)
It's now implemented and available as of 2016.1 version.
Settings/Preferences | Code Style
-- It was implemented for these languages (not sure about any other):
Java | Code Generation | Comment Code
JavaScript | Other | Comment Code
PHP | Other | Comment Code
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With