(ZZ) Simple installation and detailed configuration of Sublime Text

Sublime Text, official website

1. Sublime TextDownload and install

Enter Sublime Textthe official website , download Sublime Text, there are 2 and 3 versions, please download and install according to your own preferences.

Second, Package Controlthe installation

First open Console>>> shortcut key: Ctrl+Esc下面的那个键, enter the following code, then press Enter (please pay attention to the version of the software itself) If yes Sublime Text3, the code is as follows:

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())

If yes Sublime Text 2, the code is as follows:

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')

Just restart the software.

3. Plug-in installation and uninstallation

1. Plug-in installation: After restarting the software, the shortcut key Ctrl+Shift+Pcan be opened Package Control. Enter the keyword Install Package +  回车to enter the plug-in candidate installation interface. Enter the name of the plug-in you want to install. For example Emmet, after finding it, press Enter to install. 2. Uninstall a plugin: Open Package Controlit, enter the keyword Remove Package+ 回车, it will enter the plugin candidate deletion interface, enter the name of the plugin you want to uninstall, for example Emmet, after finding it, press Enter to uninstall.

Fourth, the detailed configuration of the Preferences.sublime file

Preferences>Setting UserThe next step is to open the configuration file in the >>> menu bar Preferences.sublimeand search for it. The specific configuration is as follows:

{
    //主题文件的位置
    "theme":"Centurion.sublime-theme",
    "color_scheme":"Packages/Color Scheme - Default/Monokai.tmTheme",
    //字体
    "font_face":"Consolas",
    //字体大小
    "font_size":11.0,
    "ignored_packages":
    [
        "Vintage"
    ],
    //每行code相对于上一行代码的上边距
    "line_padding_top":2,
    //tab键缩进用空格代替
    "translate_tabs_to_spaces":true,
    //自动换行
    "word_warp":true,
    //tab键制表符宽度
    "tab_size":4,
    //是否显示行号
    "line_number":true,
    //是否显示代码折叠按钮
    "fold_buttons":true,
    //不管鼠标在不在行号边栏,代码折叠按钮一直显示
    "fade_fold_buttons":true,
    //按回车时,自动与制表位对其
    "auto_indent":true,
    //自动匹配引号,括号等
    "auto_match_enabled":true,
    //突出显示当前光标所在行
    "highlight_line":true,
    //设置光标闪动方式
    "caret_style":"smooth",
    //是否特殊显示当前光标所在的括号、代码头尾闭合标记
    "match_brackets":true,
    //切换到其他文件标签或点击其他非本软件区域,文件自动保存
    "save_on_focus_last":true,
    //代码提示
    "auto_complete":true,
    //设置为true时,按Tab会根据前后环境进行代码自动匹配补全
    "tab_completion":true,
    //选中的文本按Ctrl+F时,自动复制到查找面板的文本框里
    "find_selected_text":true,
    //防止SublimeText自动检查更新
    "update_check":false
}

^_^/, well, it's done, the specific usage still depends on your own preferences, the configuration here is not unique, please don't care about these details~.

Leave the ** tool here, please support the genuine version. sublime.text.3.x64.patch.by. There are no lights in the wilderness, please search for the specific usage of the **tool.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326644329&siteId=291194637