Reformat code before commit?

Is there any way to run Reformat code on all pending changes, preferrably as part of commit?

Thanks,
Mark

0
10 comments
Avatar
Permanently deleted user

Hello digger69,

Please have a look at the following help topic: http://www.jetbrains.com/ruby/webhelp/commit-changes-dialog.html
You should turn on "Reformat code" option.

Regards,
Oleg

0
Avatar
Permanently deleted user

This is exactly what I was looking for. However, my commit dialog doesn't have those options. I am using subversion. Am I missing a switch to enable this? help indicates before commit should be available for subversion.  I'm running 3.1 on snow leaopard.
screen.jpg

thanks for your help.

0
Avatar
Permanently deleted user

Hello,
Indeed, this option is described in the RubyMine documentation, however it is missing in build. I've create an issue for this: http://youtrack.jetbrains.net/issue/RUBY-8120
Feel free to vote, comment and get notified once it is fixed.

Regards,
Oleg

0
Avatar
Permanently deleted user

Rats. :/

0

Hi,

I have good news, Oleg just has fixed it and fix will be available in final 3.1.1 but not in todays comming 3.1.1 rc2

0
Avatar
Permanently deleted user

Excellent. He fixed the code and added a test, right?

0
Avatar
Permanently deleted user

Actually it was nescessary to perform some decoupling refactoring and tweak buildscript a little bit :)

Regards,
Oleg

0
Avatar
Permanently deleted user

Good stuff. Thank you for the prompt repsponse. I'll be watching for 3.1.1.

0
Avatar
Permanently deleted user

Just tested on 3.1.1 103.260 and I'm not seeing this option on the commit dialog :/

0

Hello,

Unfortunately we haven't manage to migrate fix in 3.1.1 from our trunk. Our trunk is built on newer IntelliJ platform version and is some places API differs significantly. Sorry. Bit issue is fixed and will be available in RubyMine 4.0 EAPs.

0

Please sign in to leave a comment.