Prevent RubyMine from reformatting pasted code

Posted . Visible to the public.

When you paste copied code with CTRL+V, RubyMine will change the indentation of the pasted code. You can prevent this by pasting with CTRL+ALT+Shift+V instead ("Paste Simple").

To change this behavior entirely, you can open your settings and navigate to Editor / General / Smart Keys. Here you can select one of three options for Reformat on paste:

  • None
  • Indent Each Line (default)
  • Indent Block
  • Reformat Block

You might want to try "Indent Block".

Henning Koch
Last edit
Henning Koch
Keywords
copy, paste
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2016-05-19 08:14)