Insulation from reformatting

Theres a region I want to insulate from the rubyBrains reformatter - is there a metatag or something I can use for this purpose?

0
5 comments
Avatar
Permanently deleted user

Hello Dave,

At the moment we don't have any mechanism for this, what's wrong with default behaviour?

Regards,
Oleg

0
Avatar
Permanently deleted user

Sorry - I thougght I had replied earlier but the response didnt' go through.

The use case is having a "formattted whitespace block" such as....



foo << {:id => 1, :name => "Barney",    role=> "Admin"}
foo << {:id => 2, :name => "Fred",      role=> "User"}
foo << {:id => 3, :name => "Betty",     role=> "User}

I have lots of code like this at work but its the weekend....

If you want to preserve whitespeace on this but still format the page it would be good to have avenues for this.

Otherwise -- excellent IDE!

0
Avatar
Permanently deleted user

Hello Dave,

foo << {:id => 1, :name => "Barney",    role=> "Admin"}
foo << {:id => 2, :name => "Fred",      role=> "User"}
foo << {:id => 3, :name => "Betty",     role=> "User}

Ahhh, I see. Unfortunally at the moment RubyMine cannot align role => .... automatically. Are there any other cases?
Because this one seems to be quite usual to support it without adding any options for regions that won't be formatted.

Otherwise -- excellent IDE!


Thanks a lot, appreciate it!

Regards,
Oleg
0
Avatar
Permanently deleted user

I would not expect jetBrains to AUTOMATICALLY format this sort of thing - all I ask is for some sort of "leave it alone" comment hook to prevent REFORMATTING stuff that I've taken pains to whitespace to my liking.

0
Avatar
Permanently deleted user

Hello Dave,

I've created an issue for you: http://youtrack.jetbrains.net/issue/IDEA-75196
Feel free to vote, comment and get notified once it is fixed.

Regards,
Oleg

0

Please sign in to leave a comment.