QT Creator - Column Edit



  • Qt Creator 3.2 supports column editing, described as this:

    Column Editing

    To apply a change to several rows in a column simultaneously, press Alt, select the rows, and start typing. The text you type appears simultaneously at the cursor position on all the selected rows.

    http://qt-project.org/doc/qtcreator-3.2/creator-editor-refactoring.html#column-editing

    Doesn't work for me. When they say "press alt" do they mean tap it once, or do they mean press and hold? Which alt do they mean? On my system (as is very, very, very common on popular Linux window managers) left alt is the generic "drag this window" instruction to my window manager, so am I simply out of the game on column editing? When they say "select", do they mean just highlight the rows I want? Do I have to highlight the whole row, or just any part of the row?



  • Try pressing Alt, and keep pressed, and press left mouse buttoin, and keep both pressed, and drag mouse.



  • Worked it out.

    Press and hold left-alt, and shift, and then use the cursor keys to select rows.

    Alternatively, first press and hold left mouse, THEN press and hold left alt, THEN drag the mouse to select rows.



  • Is there a way to skip lines when doing column selection?

    For example, SublimeText allows to place multiple cursors anywhere in the text using Ctrl+Click. Same principle (Ctrl+Click-and-Drag, Ctrl+DoubleClick) is used to make multiple non-continuous text selections.

    I wish these edit semantics were supported by all code editors.



  • Is there a way to skip lines when doing column selection?

    For example, SublimeText allows to place multiple cursors anywhere in the text using Ctrl+Click. Same principle (Ctrl+Click-and-Drag, Ctrl+DoubleClick) is used to make multiple non-continuous text selections.

    I wish these edit semantics were supported by all code editors.



  • I just switched to a Mac. I love this feature, but I can't figure out how to do it on the Mac. Any advice?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.