Please let us disable javascript formatting completely

As a beginning of this suggestion, I'd like to quote Julien Lebosquain from thread http://devnet.jetbrains.net/message/5317899#5317899:

Sorry for hijacking the thread, but the ability to disable various features is really missing from R#.
I  mean, add options for almost everything. We can disable and configure  each one of the C# inspections, but there is no options to completely  disable support for a given language, or formatting for a given type of  file. Every new feature you're adding should have its corresponding  option.

 
I  really like ReSharper, but as other users already reported, I find the  version 6 to have lower quality than previous releases. As long as  you're editing C#, everything works fine and great. Try to edit some  Razor file containing HTML, C#, JavaScript and CSS and ReSharper just  gets in the way rather than helping. I know that you're aware of  performance problems and weird autocomplete behaviors: many of them are  already reported on YouTrack. While we're waiting for them to be fixed,  please let us disable features that are currently annoying.

I fully agree with the author of these lines. It is more than annoying that I cannot control what R# does to my code, and what it does not.
Especially I'd like to "thank you" guys (devs) for the new javascripting formatting. Since I cannot turn it off I have to disable all R# completely when I'm editing my javascript files. Guys, please, trust me, I know better than R# how my code should look like, and I hate when something does anything to my code without being able to disable it. I've always been very disappointed with R# when it comes to looking how a feature is called, which just did some formatting to my code. Like when I press ';' and just want an editor to type ';', but out of sudden my code changes: here goes R# with its formatting. Okay. No worries. But how can I find what have just happened? Where is the log in which I could read something like:

2011.09.17 22:11:01: applied formatting style/feature/option xxx on lines 1-5

This way atleast I could quickly find out what formatting was applied. You could do more and add links from this log to corresponding settings, so if I click on the name of the style/feature/option xxx I could get into that settings and modify 'em if needed.
Like with the suggestions, when it highlights my code and from the button appearing to the left I can change options for this notification. All this is really a must for usability-targeted software.

And with this new no-way-to-disable-we-know-better-than-you-how-to-format-your-javascript-code thing... I'm soooo angry. VERY BAD. VERY SAD.

Since I'm still thinking R# is a great tool, I believe I'm moving back to version 5 until this gets added.

15 comments
Official comment
You have the following options as of ReSharper 2017.3:
1. You can completely disable formatter for selected file extensions, but this would affect not only auto-format, but also manual formatter invocations (for example, from code cleanup). Create .editorconfig file with the following text (substitute js for your language extension) and place it at the root folder of your solution
[*.js]
resharper_disable_formatter=true

2. Even more drastic measure would be to completely disable language support for some languages. Go to ReSharper | Options > Environment | Products & Features > turn off unneeded features.

Hello Oleg,

We really appreciate your feedback! First of all, you can avoid your javascript
code being changed when you type ';' by turning off 'Auto-format on semicolon'
option under ReSharper | Options | Environment | Editor. Also, could you
please clarify which JavaScript code style options we should add, so that
you could configure JavaScript formatting according to your style? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

As a beginning of this suggestion, I'd like to quote /people/MrJul
from thread /message/5317899#5317899:

Sorry for hijacking the thread, but the ability to disable various
features is really missing from R#.

I  mean, add options for almost everything. We can disable and
configure  each one of the C# inspections, but there is no options to
completely  disable support for a given language, or formatting for a
given type of  file. Every new feature you're adding should have its
corresponding  option.

I  really like ReSharper, but as other users already reported, I find
the  version 6 to have lower quality than previous releases. As long
as  you're editing C#, everything works fine and great. Try to edit
some  Razor file containing HTML, C#, JavaScript and CSS and ReSharper
just  gets in the way rather than helping. I know that you're aware of
performance problems and weird autocomplete behaviors: many of them
are  already reported on YouTrack. While we're waiting for them to be
fixed,  please let us disable features that are currently annoying.

I fully agree with the author of these lines. It is more than annoying
that I cannot control what R# does to my code, and what it does not.

Especially I'd like to "thank you" guys (devs) for the new
javascripting formatting. Since I cannot turn it off I have to disable
all R# completely when I'm editing my javascript files. Guys, please,
trust me, I know better than R# how my code should look like, and I
hate when something does anything to my code without being able to
disable it. I've always been very disappointed with R# when it comes
to looking how a feature is called, which just did some formatting to
my code. Like when I press ';' and just want an editor to type ';',
but out of sudden my code changes: here goes R# with its formatting.
Okay. No worries. But how can I find what have just happened? Where is
the log in which I could read something like:

2011.09.17 22:11:01: applied formatting style/feature/option xxx on
lines 1-5

This way atleast I could quickly find out what formatting was applied.
You could do more and add links from this log to corresponding
settings, so if I click on the name of the style/feature/option xxx I
could get into that settings and modify 'em if needed.

Like with the suggestions, when it highlights my code and from the
button appearing to the left I can change options for this
notification. All this is really a must for usability-targeted
software.

And with this new
no-way-to-disable-we-know-better-than-you-how-to-format-your-javascrip
t-code thing... I'm soooo angry. VERY BAD. VERY SAD.

Since I'm still thinking R# is a great tool, I believe I'm moving back
to version 5 until this gets added.

---
Original message URL:
http://devnet.jetbrains.net/message/5319519#5319519



0

I second wanting a way to disable JS formatting all together.  I rather just have it off, not just more settings to modify it.  The only thing I found that works so far is just to suspend resharper.  That isn't really a good option.  I also don't want to disable settings like auto-complete on semi-colon since that affects other languages that I actually want that feature in.  I'm just glad I don't have to put up with the same issue with my CSS since I use SCSS and Resharper doesn't touch that file extension at all.  I will probably just go back to version 5 since I don't use Razor (use Spark instead) and most of the newer features are actually counter productive rather than helpful.  I seem to be spending more time fixing things Resharper did that I don't want it doing than I ever have before.

0

ReSharper is absolutely fantastic and I find I have grown so used to many of its shortcuts when editing C# code that going back to vanilla Visual Studio somewhat restrictive.

That said, I agree with what the topic author said wholeheartedly and would like to rebut your suggestion that autocompletion feature X or Y be disabled. Doing so also disables that in C#! I like these features in C#. I dislike them in JavaScript. I do not want JavaScript autocompletion and I don't want JavaScript code inspection to use the same settings as C# code inspection. You guys need to make it possible to either turn off the whole JavaScript module or at least either stop sharing code editor settings with C# or make it possible to override those settings when editing JavaScript. One of the main problems you're always going to face is that JavaScript programming is too fluid for you to ever get the inspection and autocompletion 100% right and there are going to be plenty of cases where more complex JavaScript applications are going to simply be hindered by ReSharper.

In summary, please, please, please stop mixing JavaScript settings with C# settings, or at the very least let me disable the JavaScript module.

0

Hello Nathan
     With the upcoming ReSharper 6.1 you can turn off code completion (in various contexts) for JavaScript only as well as configure inspection severity settings. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0

I'm using ReSharper 6.1 - where in the options can I disable JavaScript autocompletion and autoformatting?

0

I am using 6.1. Where is the option to disable javascript code formatting?

0

Hello
     I'm afraid JavaScript code formatting cannot be disabled separately at the moment. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Andrey Serebryansky wote:
With the upcoming ReSharper 6.1 you can turn off code completion (in various contexts) for JavaScript only
Andrey Serebryansky wote:
I'm afraid JavaScript code formatting cannot be disabled separately at the moment.


So will this feature be in R# 7? Or will you tell us it's going to be in v7, and then after the release tell us it's not available?

0

Hello Richard
     I'm sorry for the confusion. In my previous response ("With the upcoming ReSharper 6.1 you can turn off code completion (in various contexts) for JavaScript only") I was talking about the ability to disable code completion (not code formatting), which is indeed available since ReSharper 6.1. However, automatic code formatting still cannot be disabled for JavaScript separately. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0

Hi Andrey, is disabling everything for JavaScript a planned feature? I love Resharper for C#, but I don't want it touching my JavaScript. Even with every setting disabled, it still doesn't work for me and probably never will.

0

Craig,

Unfortunately, it Code Formatting can't be disabled for JavaScript only now.
We apologize for the inconveneince.

Thanks.

0

Thanks for the response. I understand it's not supported now. I want to know if it's a planned feature. Without this feature Resharper costs me more time than it saves, and I'm afraid I won't be upgrading my other licenses until I can disable code formatting.  

0

Craig,

Code Formatter cannot be disabled completely, since formatting styles are used when refactoring and generating code by ReSharper.
However, we have plans to introduce new options to disable auto-formatting on semicolons/closing braces based on a language (like, JS).

Thank you.

0

I think in general, as a rule of thumb, you need to never assume that just because we use ReSharper for language A,that it means we have any interest in ReSharper for language B. For example, just now I had to go and individually disable all of the CSS inspection severity options just to get ReSharper to stop reporting errors in solution-wide analysis. I use ReSharper for my C# code and kind of feel like you're forcing your CSS and JavaScript features down my throat, even though I don't want ReSharper "helping" me with those languages. I love ReSharper for C#, but I feel angry and frustrated when ReSharper incorrectly interferes with languages that I did not ask it to inspect and analyse. Please keep this in mind as you develop the product. ReSharper is supposed to be a help, not a hindrance.

2

Please sign in to leave a comment.