Full code cleanup for JavaScript files not working in Rider but working in Resharper

Answered

To be explicit: cleanup using Ctrl+E, C. NET Core 3.0 web project with JS files in the wwwroot folder.

Is there some setting I need to enable/disable to have Rider analyse files here?

Looking closer, additionally no warnings are shown for the any of the JS problems found in the solution in Rider, whereas Resharper flags dozens of warnings for the JS files. Should I expect Rider to behave similarly to Resharper in analyzing JS files in a solution?

 

1 comment
Comment actions Permalink

Hi Julien,

I'm sorry for the delay in answer.

Indeed, started from 2019.1 Rider supports JavaScript/TypeScript languages using WebStorm Engine: https://youtrack.jetbrains.com/issue/RIDER-9801. This is the reason CleanUp does not affect those files in case of formatting. Now, one needs to configure separate settings for JS and TS code style.

`Preferences | Editor | Code Style | JavaScript`

`Preferences | Editor | Code Style | TypeScript`

and then to apply code format on ts/js files, you need to call the "Reformat Code" action. Code CleanUp does not do a thing with it because it does not call Reformat code action. This is a known issue
I hope this information could help. Please do not hesitate to let me know if you have other questions.

 

Kind regards,

Sofia

0

Please sign in to leave a comment.