I
I
IVBAN2018-12-20 12:06:21
Python
IVBAN, 2018-12-20 12:06:21

How to assign hotkeys to execute native Sublime Text 3 plugin?

I'm trying to write my plugin for sublime text.
file is created:

import sublime
import sublime_plugin

class Myautotext(sublime_plugin.TextCommand):
  def run(self, edit):
    self.view.insert(edit, 0, "Hello, World!")

view.run_command('myautotext')starts with the command .
key assignment not working:
{ "keys": ["ctrl+*"], "command": "myautotext"}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question