Keyboard shortcut in Qt Creator
-
I'd like to change the keyboard shortcuts for switching between different modes i.e. edit, design, debug, and project. I set my preferred keyboard shortcuts through
Tools->Options->Environment->Keyboardtab. I then apply the changes and close the Option window. The shortcuts work properly. I check theQtCreator.inifile and confirm that they are saved under[KeyboardShortcuts]category as:QtCreator.Mode.Design=Ctrl+1 QtCreator.Mode.Edit=Ctrl+` QtCreator.Mode.Mode.Debug=Ctrl+2 QtCreator.Mode.Project=Ctrl+3Now, I close Qt Creator and check the
QtCreator.iniagain and confirm that the newly modified shortcuts are still there. However, when I run Qt Creator again, it changes theQtCreator.iniand removes two of my shortcuts. This is what it has now:QtCreator.Mode.Design=Ctrl+1 QtCreator.Mode.Edit=Ctrl+`I repeated this process couple of times with no luck. How can I fix this? Is this a bug?
(I am using Qt Creator 4.5.2 in Linux.)
-
Hi and welcome to devnet,
Just for checking, does it also happen if you replace the shortcut for
QtCreator.Mode.Editby Ctrl+4 ? -
Hello,
As you could tell from my question, the
QtCreator.Mode.Editis working just fine with my new keyboard shortcut as it is not the problem.QtCreator.Mode.Mode.DebugandQtCreator.Mode.Projectare the problem. They work just fine when I set the new keyboard shortcuts for them. However, as soon as I restart Qt Creator, it resets them back to their original keyboard combination. -
Hello,
As you could tell from my question, the
QtCreator.Mode.Editis working just fine with my new keyboard shortcut as it is not the problem.QtCreator.Mode.Mode.DebugandQtCreator.Mode.Projectare the problem. They work just fine when I set the new keyboard shortcuts for them. However, as soon as I restart Qt Creator, it resets them back to their original keyboard combination. -
That was clear, my test suggestion was to determine whether it is the
Ctrl+` that is not parsed correctly and thus gives you that behaviour. -
The report is: https://bugreports.qt.io/browse/QTCREATORBUG-20102
-