Open jakubsuchybio opened 7 years ago
YES! I too need a way to easily copy my custom shortcuts to another machine. VS Code makes this sort of thing so easy, and VS20** has always been a pain in the behind! Once more i say.... Yes!!
@madskristensen ? :) What do you think?
+1
Use VS 2019's built-in settings exporter. Tools / Import and Export Settings Wizard.
Uncheck all. Check Options / Environment / Keyboard.
Export.
Go to other machine. Import.
CAVEAT: The exported ".vssettings" file contains a command line that first sets the keyboard to the "global default" that was selected on the source machine. If you don't want that, then open .vssettings file in a text editor, copy/paste into an XML pretty printer, paste the result back into your text editor. (To make it easier to find the line.)
I believe you can simply delete that line, to avoid that "reset" back to defaults.
Below that line, you'll see a short list of just your custom settings.
In fact, if what you want to know is "what have I customized?", using this built-in exporter is more helpful than ShortcutExporter (whose strength is seeing ALL assignments).
I'd really like the ability to export only user changed(non-default) Keyboard shortcuts. So I could insert them into newly installed VS or on another machine.
Or if I would be able to import them back from this exported file it would be so awesome.
Edit: If it is not possible to distinguish non-defaults from defaults. Then it could be easily done by creating default exported shortcuts file(DefaultExportedShortcuts.xml) from new VS installation and making diff (or set subtraction) of exported shortcuts with those from DefaultExportedShortcuts.xml