D
D
Daniil Shevkunov2021-09-15 12:56:40
Sublime Text
Daniil Shevkunov, 2021-09-15 12:56:40

Set up hotkeys for built-in commands in sublime text?

For example, there is a built-in open file command that is configured like this:

{ "keys": ["ctrl+o"], "command": "prompt_open_file"}


And there is a new file:
{ "keys": ["ctrl+n"], "command": "new_file"}

The difference is in the presence of prompt
And how to put hot keys on print?
options print, Print, prompt_printdon't work, what to use, and how to figure it out for other commands?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas V, 2021-09-16
@danila763

The main menu commands can be found in the file Main.sublime-menu , the default package (which is called Default) . This package is naturally packaged, but you can view its contents using, for example , PackageResourceViewer .
For even more convenient work with the internal kitchen of the sublime (syntax highlighting of its resources and other goodies), it would be a good idea to put PackageDev .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question