• Sublime Text 下载及配置


    版本说明:

    Sublime Text 2.0.2、Sublime Text 3.2.2 均为 portable version。

    前提:Python 已加入环境变量
    ############################################################################
    https://www.sublimetext.com/2

    Version: 2.0.2

    OS X (OS X 10.6 or later is required)
    Windows - also available as a portable version
    Windows 64 bit - also available as a portable version
    Linux 32 bit
    Linux 64 bit

    Sublime Text 2.0.2  (此版本选择了 portable version),直接解压就可以使用。
    https://download.sublimetext.com/Sublime Text 2.0.2.zip

    1 新建Py文件,打印中文 (print('你好')),出现错误,Decode error - output not utf-8,解决办法:

    修改Python.sublime-build配置文件,添加如下行: 
     "encoding":"cp936" (注意在上一行结束加逗号)

    Python.sublime-build文件位置:

    Sublime Text 2.0.2\Data\Packages\Python\Python.sublime-build

    {
        "cmd": ["python", "-u", "$file"],
        "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
        "encoding":"cp936",
        "selector": "source.python"
    }

    2 将Tab键自动替换为4个空格

    将 Preferences.sublime-settings 文件中 "translate_tabs_to_spaces":  改为 true。

        // The number of spaces a tab is considered equal to
        "tab_size": 4,

        // Set to true to insert spaces when tab is pressed
        "translate_tabs_to_spaces": true,

    Preferences.sublime-settings文件位置:
    Sublime Text 2.0.2\Data\Packages\Default\Preferences.sublime-settings

    参考:
    https://blog.csdn.net/qq_23934063/article/details/71427930

    ############################################################################
    https://www.sublimetext.com/3

    Sublime Text 3.2.2 (此版本选择了 portable version),直接解压就可以使用。
    https://download.sublimetext.com/Sublime Text Build 3211.zip

    1 取消自动更新(需重启):
    Preferences--Settings--Preferences.sublime-settings--user--添加 "update_check":false,--保存。

    Preferences.sublime-settings--user 文件位置:
    Sublime Text Build 3211\Data\Packages\User\Preferences.sublime-settings

    {
        "update_check":false,
    }

    ############################################################################

    其他:

    01 以上支持 32位系统,Sublime Text 4 好像仅支持 64位系统。

    02 python 加入环境变量后可以不用自定义python,如果有多个版本需要自定义python编译。

  • 相关阅读:
    运维 | 如何在 Linux 系统中删除软链接 | Linux
    普中精灵开发板stm32烧录程序失败
    女鹅冬天的第一件羽绒服,当然要时尚经典的
    CPF 使用C#的Native AOT 发布程序
    ROS2——动作(十一)
    MySQL8.0中你不得不知道的索引新特性
    java版工程管理系统Spring Cloud+Spring Boot+Mybatis实现工程管理系统源码
    Kotlin-高阶函数
    git初学者使用教程(包含Android studio中git使用)
    UMA 2 - 创建自己的UMA模型⭐一.配置Blender环境
  • 原文地址:https://blog.csdn.net/yudiandian2014/article/details/133633342