Skip to content

Commit

Permalink
Issue checkstyle#4030: Update IDEA setup docs to include Disable Auto…
Browse files Browse the repository at this point in the history
… Indent On Paste
  • Loading branch information
kukreja-vikramaditya authored and SergeyDzyuba committed Mar 22, 2017
1 parent d05217c commit b3c6d9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/xdocs/idea.xml
Expand Up @@ -84,5 +84,16 @@
</p>
</section>

<section name="Disable Auto Indent On Paste">
<p>
IDEA has it's own rules of indentation when pasting code and it applies these rules to
all the lines of the copied code. This may result in wrong formatting of code in many
checkstyle files. A simple solution to this problem is by using the key combinations
<code>Ctrl + Shift + Alt + V</code> or <code>Edit | Paste Simple</code>. However it is
recommended that this settings be changed by default as shown below
<img alt="Disable Auto Indent on Paste" src="images/gui_screenshot_disable_indent_paste_idea.png"/>
</p>
</section>

</body>
</document>

0 comments on commit b3c6d9b

Please sign in to comment.