[Qt-creator] Change keys for indent/unindent lines

Christian Kamm christian.d.kamm at nokia.com
Thu Mar 17 09:56:00 CET 2011


On Wednesday 16 March 2011 18:33:14 ext Stephen Chu wrote:
> I am not sure we are talking about the same thing. I have the option set
> to never (default?).
> 
> The feature I mentioned works like this:
> 
> 1. Select a few lines of text.
> 2. Press tab key.
> 3. The lines with selected text all shift to the right.
> 4. Press shift-tab key.
> 5. The lines now all shift to the left.
> 
> It's not auto-indent. Sort of more like multi-line manual indent.

Ah, sorry. Yes, this manual-indent seems to be the fallback behavior for the 
tab key when tab-key-means-auto-indent is disabled. (basetexteditor.cpp around 
line 1660)

> And what I want is to change the keys associated with the function. Like
> instead of shift-tab, use command-[ (control-[ on Windows) to indent
> selected lines to left.

Could you make an enhancement request for that? If it really annoys you, maybe 
you'd be interested in preparing a patch and filing a merge request?

Cheers,
Christian



More information about the Qt-creator-old mailing list