In article <[email protected]>, Christian Kamm <[email protected]> wrote:
> On Wednesday 16 March 2011 15:35:46 ext Stephen Chu wrote: > > I stumbled into tab/shift-tab with selection to indent/unindent lines of > > text. They add/remove leading tabs to selected lines. I had this > > function in other IDEs I used and find it extremely useful. > > > > One issue I have is the use of tab key for this. Sometimes I will select > > some text and hit tab to replace the text with a tab. Instead of doing > > that, the editor adds a tab to the beginning of the line, leaving my > > selection intact. > > > > Is there a way to change the keys for this function? I checked the > > Environment preferences and either it's not there or it's named so I > > don't recognize it. > > There's a setting for the behavior of the tab key in Options/Editor/Behavior, > you can disable it or make it indent in leading whitespace only. > 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. 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. Thanks. -- Stephen Chu _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
