Visual Studio Code 虽然比较好用,但是打开文件比较慢, 还是又转用 Sublime Text3 来处理简单文件任务.

<h2>1. SublimeText3 安装</h2>

<h3>1.1 官网安装方法</h3>

  • 安装 GPG key:
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
  • 选择版本, Stable
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Dev

echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
  • 更新源, 并安装.
sudo apt-get update
sudo apt-get install sublime-text

<h3>1.2 deb 安装</h3>

下载地址: https://download.sublimetext.com/files/sublime-text_build-版本号_amd64.deb

例如:
3126 版本的下载地址为:https://download.sublimetext.com/files/sublime-text_build-3126_amd64.deb
3176 版本的下载地址为:https://download.sublimetext.com/files/sublime-text_build-3176_amd64.deb (最新版本)

安装完成后, 可百度激活码激活.
激活码经常被封, 多试几个.

<h2>2. 设置中文界面</h2>

默认是英文界面, 可以采用以下方式将界面设为中文:

  • 首先打开sublime,找到preference 下的 package control
  • 点击package control ,弹出如下框搜索install; 找到install package点击进入
  • 搜索localiza,找到如下选项,极为中文插件,点击安装. 即可.

参考: sublimeText3汉化教程-自带插件汉化

<h2>3. 解决中文输入问题</h2>

sudo apt-get update
sudo apt-get upgrade

cd /opt/ 
sudo git clone https://github.com/lyfeyaj/sublime-text-imfix.git

cd sublime-text-imfix

sudo ./sublime-imfix

重启即可.

<h2>4. Python</h2>

推荐使用 Anaconda 插件.

插件安装后, 打开 python 脚本出现白框, 请设置 Anaconda 添加:

{
    "anaconda_linting": false,
}

<h2>5. 个人简单配置</h2>

{
    "file_exclude_patterns":
    [
        "*.pyc",
        "*.pyo",
        "*.exe",
        "*.dll",
        "*.obj",
        "*.o",
        "*.a",
        "*.lib",
        "*.so",
        "*.dylib",
        "*.ncb",
        "*.sdf",
        "*.suo",
        "*.pdb",
        "*.idb",
        ".DS_Store",
        "*.class",
        "*.psd",
        "*.db",
        "*.sublime-workspace"
    ],
    "folder_exclude_patterns":
    [
        ".svn",
        ".git",
        ".hg",
        "CVS"
    ],
    "ignored_packages":
    [
        "Vintage"
    ],
    "line_numbers": true,
    "rulers":
    [
        80
    ],
    "show_encoding": true,
    "show_full_path": true,
    "tab_size": 4,
    "theme": "Default.sublime-theme",
    "word_wrap": "auto",
    "hot_exit": false,
    "remember_open_files": false,
    "font_face": "",
    "font_size": 13,
    "highlight_line": true,
    "auto_indent": true,
    "bold_folder_labels": true,
    "color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme",
    "dpi_scale": 1.0,
    "update_check":false,
}

Last modification:October 9th, 2018 at 09:31 am