possible to automatically move the cursor to the next line after comment one line?
-
Hi guys.
The question is pretty simple: I used to work on other IDE on which if I click "Ctrl+/" to comment one line, the cursor will move the next line automatically.
But in Qt Creator, the cursor stays on the current line.is it possible to modify this feature?
Thnx
-
Hi,
you're not the first one asking this question: https://bugreports.qt.io/browse/QTCREATORBUG-17250is it possible to modify this feature?
Of course (Creator is open source software), just somebody has to do it. I don't have a strong opinion on that and would most likely recommend a setting for that.
-
@qtpi Of course can you create a patch and push to codereview.qt-project.org
But I just found a much simpler solution:Use the text editing macros [1], record your sequences of keystrokes, save the macro and then assign a key combination to your macro in Tools -> Options -> Environment -> Keyboard.
[1] http://doc.qt.io/qtcreator/creator-macros.html
No coding needed and works like a charm. -
@aha_1980 said in possible to automatically move the cursor to the next line after comment one line?:
@qtpi Of course can you create a patch and push to codereview.qt-project.org
But I just found a much simpler solution:Use the text editing macros [1], record your sequences of keystrokes, save the macro and then assign a key combination to your macro in Tools -> Options -> Environment -> Keyboard.
[1] http://doc.qt.io/qtcreator/creator-macros.html
No coding needed and works like a charm.nice solution. Thnx!