justcla / KeyBindings

Installs alternative keyboard mapping schemes to work with Visual Studio. Provides rich hotkeys and keyboard shortcuts.
http://aka.ms/HotKeys
70 stars 10 forks source link

Shortcuts not working? #22

Closed andrew121410 closed 2 years ago

andrew121410 commented 2 years ago

When importing a shortcut from Tools -> Keyboard Shortcuts -> Load Shortcuts nothing is being added to the keyboard mapping scheme.

image

image

image

Or image

image

justcla commented 2 years ago

Well, that is by design. There are two options for changing shortcuts.

  1. You can turn on a mapping scheme, which brings in all the shortcuts in that scheme.
  2. You can "import" specific shortcuts (without a mapping scheme) and these shortcuts will exist no matter what mapping scheme is applied.

I have found option 2 to be the most reliable, because a mapping scheme will not always override manually created shortcuts, so you might not get the correct experience.

So when you "Load Shortcuts", it has nothing to do with mapping schemes. It just adds (or removes) individual shortcuts.

When you saw the dialog that said "Keyboard shortcuts successfully imported!", it meant they are now available. Just try using the shortcuts and you should see that they work - because you have imported them.

Forget about the mapping schemes. :-)

andrew121410 commented 2 years ago

Oh it does work lol. I was trying to do CTRL + Alt + O to clean the imports and CTRL + Alt + L to reformat code, but that doesn't seem to work. But the reset of the keys that I need work.

justcla commented 2 years ago

(ahem) coughs quietly Um....You're welcome?

andrew121410 commented 2 years ago

Thank you lol

justcla commented 2 years ago

😁 No problem! I hope those IntelliJ key bindings work nicely for you. I'll look into why those Format shortcuts didn't work.

justcla commented 2 years ago

FYI - I updated the shortcuts for RemoveAndSort (Optimise imports). The FormatDocument is also working. Check the latest release v4.2.1

andrew121410 commented 2 years ago

Awesome! Thank you!, once again.