intellij-ideatext-capture

Strange text capturing in intellij idea


Looks like I pressed some key combination or something. I cannot capture code as usual. Idea captures not the whole method but text according to the level of the cursor. Does anyone know how to turn on/off this feature? I use ultimate version 2017.1

enter image description here

enter image description here


Solution

  • You've probably enabled Column selection mode, which on Windows has as default shortcut: ALT + SHIFT + INSERT.

    keymap settings

    You can also temporarily enable this selection mode, by holding down the ALT key, then clicking and dragging with the mouse over the block of text you want to select, like this:

    column mode selection

    Take a look at the documentation because there are a few other useful features you can take advantage of.