How to make RubyMine autocorrect with Rubocop on every save
Asked Answered
M

2

10

Is there a way to get Rubocop to format my code every time I save in RubyMine? This was a feature in VSCode, which you were able to set via "editor.formatOnSave": true, in the settings.json. Is there a similar "autocorrect on save" possibility for Rubymine?

Maulstick answered 7/1, 2021 at 2:46 Comment(0)
U
9

As of RubyMine 2021.3 this is now explicitly supported as a feature:

https://blog.jetbrains.com/ruby/2021/10/rubymine-2021-3-eap5/#run_rubocop_on_save

Undenominational answered 2/12, 2021 at 12:38 Comment(0)
I
5

Unfortunately at the moment it's not possible so please add your votes to the corresponding feature requests:

https://youtrack.jetbrains.com/issue/RUBY-19589

https://youtrack.jetbrains.com/issue/RUBY-27248

Indenture answered 8/1, 2021 at 19:55 Comment(1)
The votes paid off! As of RubyMine 2021.3 this is now explicitly supported as a feature 🎉 blog.jetbrains.com/ruby/2021/10/rubymine-2021-3-eap5/…Undenominational

© 2022 - 2024 — McMap. All rights reserved.