[Qt-creator] 'Block' selection.

Thorbjørn Lindeijer thorbjorn.lindeijer at nokia.com
Tue Jun 9 11:05:27 CEST 2009


ext Kuiper, Luuk wrote:
> Hello all,
>  
> A very handy feature in some editors is 'block' selection.
> When selecting text whit the alt-button pressed, the selection does not 
> follow the lines of code but the rectangle that is drawn with the cursor.

Actually, Qt Creator already has block selection, and you just press Alt 
to activate it while you're selecting text. Due to a bug though, you can 
only delete the text using Del and not using Backspace. This has been 
fixed for the next release.

> When pressing the tab button than, the selected part (and all what is 
> behind it) can be shifted to the right (shit-tab to the left).
> It is very usefull to line-up your code.
> And also to replace 'blocks'  of code.
>  
> See example of it in MSDev and/or Notepad++.

The <tab> key doesn't at the moment work as you describe, since it will 
indent from the start of the lines and not from the start of the block 
selection. We'll look into that.

Regards,
Bjørn

-- 
Thorbjørn Lindeijer
Software Engineer
Nokia, Qt Software




More information about the Qt-creator-old mailing list