0

When I wanted to change some keyboard shortkeys in TeXStudio I ran into some trouble. I started changing some shortcuts to combinations that I liked, hoping/thinking that if I would use a combination that was already in use TeXStudio would warn me what other key already uses that combination. It seems that TeXStudio has no such check leading to problems with combinations that are used multiple times. In addition it seems that TeXStudio has no way to search through the shortcuts by key combinations. Since there are thousands of shortcuts it would take forever to find the doubles. Did I overlook a way to search by key combination? Is there some other solution?


I am interested in finding the actions the key bindings had been bound to by default in order to remove those (not my new ones) so that I can replace them with my own.

2

As you have noticed

TeXStudio would warn me what other key already uses that combination.

So now we have numerous problems and you could simply delete the ini file, thus loosing ALL customisation including all the key changes. That would be the best advise to give when someone has ignored all the previous warnings. However:-

You know you can change each key back to its default, one by one like this.

enter image description here

Knowing they are stored in the TeXstudio.ini file like this

strong text

The simplest bulk solution WITHOUT TeXstudio active (otherwise it will save the unwanted customisation again), is to simply delete all those rogue entries keeping as few as is possible.

enter image description here

  • thanks! I could have been more clear in my question however, the main point is to find out what the keys were previously bound to so that I can remove those. (I had not made many changes yet so I would not really have had a problem with going back to the defaults everywhere). I don't understand the first part you quoted and the part about ignoring previous warnings. Are you saying that normally TeXStudio does give warnings that you think I ignored? In my case there definitely were no warnings. (Your information is still great to know too, by the way. Thanks!) – Kvothe Mar 28 at 16:35
  • To solve my actual question: Is there a similar simple text document containing the default "keysettings" just like there is for the custom one?. With that it seems that worst case I can search for the key combinations that I am interested in with other tools (such as a simple grep on the command line). – Kvothe Mar 28 at 16:37
  • reference first comment If no warnings that should indicate that they had not been assigned in editor however they could of course be reserved by the system, or by you with windows hot keys or even another application, in which case the editor could not necessarily know. re second comment I do appreciate it is not easy to check what has been assigned you need the cheat sheet at tex.stackexchange.com/questions/365456/… – user170109 Mar 28 at 16:40
  • Thanks, in this case one of the keys I tried to rebind was CTRL+SHIFT+6 which by default is "Toggle Bookmark". I now found it in the list I removed that binding but strangely enough now nothing happens when I try even though I have superscript bound to this key combination. – Kvothe Mar 28 at 16:58
  • I am finding that even though I cleared the bookmark binding that key combination still cannot be used for something else. Other custom bindings work. – Kvothe Mar 28 at 17:14
0

Firstly, there actually is a warning system when you assign a key combination twice. What happened here is that I assigned a new binding by pressing the key combination. But for keys involving shift there are two interpretations for every key combination. In my case it detected CTRL+SHIFT+^. This combination was free and so no warning was given. However the combination CTRL+SHIFT+6 was taken by Toggle Bookmark. Of course this combination actually corresponds to the same keys, but it appears that in the option menu one interpretation is used, while in the editor the other is used. The solution is to set the key combination in the menu more carefully by hand (not by pressing the buttons) to the combination where the default symbol (not the top one, activated by shift) is used.

So there is no need to search the existing bindings by key combination. One can just try a desired combination and if it is already in use you will receive a warning.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.