Run a sublime plugin from the command line?

2019-08-17 19:52发布

问题:

how can I run a sublime plugin from the command line?

I have read of a subl --command but it seems to be for osx and i'm on windows. http://www.sublimetext.com/docs/2/osx_command_line.html I see nothing there to call a plugin, and the commands don't seem to work for sublime_text.exe

i'm on Windows, with sublime_text.exe

回答1:

Sublime Text plugins do not offer command line interfaces.

Many times Sublime Text plugins wrap an external command (csslint, jshint, etc.) which is run as a subprocess by the plugin. Because your question does not specify which plugin you want to run it is impossible to tell whether or not this plugin is based on an external program.

I'd rather suggest you to ask your question in more sense "How do I solve problem X from the command line" as it sounds you are approaching the problem from the wrong angle.