Home > Article > Development Tools > Some configurations of SublimeText2
SublimeText2 is a code editor that supports HTML written by programmer Jon Skinner. The following column sublime tutorial will introduce you to some configurations about SublimeText2. I hope it will help you if you need it. Friends help!
1. Install Sublime Package Control.
Use Ctrl ~ (View->show Console) on Sublime Text 2 to open the console and enter the following code in it. Sublime Text 2 will automatically install Package Control.
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')
2. Chinese garbled characters. Restart Sublime Text 2, then use Ctrl Shift P to open the command line mode, enter Install Package in it to search for the required Package. Generally, using "ConvertToUTF8" and "GBK Encoding Support" can solve Chinese garbled characters.
3. The Chinese input box follows the cursor. Installing the IMESupport plug-in can solve the problem.
4. The open files are displayed on the left. Just use the sublimetext-defaultplus-theme theme.
The above is the detailed content of Some configurations of SublimeText2. For more information, please follow other related articles on the PHP Chinese website!