Sublime Forum

Making a keyboard shortcut key-binding for Revert-File

#1

I want to bind a key to the File>Revert File function.

I tried adding the following inside Preferences>Key Bindings-User.
the entirity of the file looks like this

	{ "keys": "ctrl+alt+r"], "command": "revert_file" }

]
I saved the file, but it didn’t do anything.

I even restarted sublime. The shortcut key combo is not shown in the file menu and sublime does not respond to this keyboard shortcut.

0 Likes

#2

The command you are looking for is named “revert”.

0 Likes