ubuntu14.04和18.04下安装sublime text3及Package Control插件

ubuntu14.04:

安装Sublime text3:

sudo add-apt-repository ppa:webupd8team/sublime-text-3   
sudo apt-get update  
sudo apt-get install sublime-text-dev 

ubuntu18.04:

安装Sublime text3:

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text

安装Package Control插件:

安装成功后打开sublime text3,按ctrl + ~,在控制台中输入(一行一行输入):

import urllib.request, os;
pf = 'Package Control.sublime-package'; 
ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) );
open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

即可按成Package Control插件的安装。

猜你喜欢

转载自blog.csdn.net/zgcr654321/article/details/81703806
今日推荐