Installing multiple packages in sublime text 3

主宰稳场 提交于 2019-12-09 13:23:16

问题


When installing packages in Sublime Text 3, is there anyway I can tick all the ones I want from a list, and then install them in one go? Or do I have to click Preferences > Package Control > Install Package, for every single package I'd like to install? Notepad++ for instance has a nice list with checkboxes...


回答1:


Just use Preferences > Package Control > Package Control: Advanced Install Package.

Then you can enter a comma-separated package list, e.g. ConvertToUTF8,MarkdownEditing,SublimeLinter,SublimeREPL.

Also, note that you could just press cmdshiftp (on OS X) or ctrlshiftp (on Windows) and type the command name (Package Control: Advanced Install Package) or even part of it, like pcaip. This will be much faster than clicking menu entries.




回答2:


@wbond said:

To batch install other packages, a Package Control.sublime-settings file needs to be placed into the Packages/User/ folder.

Inside of the settings file should be a JSON object (Package Control.sublime-settings) with the key "installed_packages" that references a list of package names. When Package Control starts, if any of those packages are not present, the will be automatically downloaded and installed. Here is an complete example: { "installed_packages": [ "ApacheConf.tmLanguage", "Package Control", "SublimeLinter" ] }

After adding the packages you want to on Package Control.sublime-settings, just restart Sublime Text and the Package Control will start installing those packages.



来源:https://stackoverflow.com/questions/33581626/installing-multiple-packages-in-sublime-text-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!