Mac 中 Sublime 主題及 Python3 直譯器配置

HuDu發表於2020-07-01

下載

下載 Sublime

3211許可金鑰

----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
5653E0A0 BACE3948 BB2EE45E 422D2C87
DD9AF44B 99C49590 D2DBDEE1 75860FD2
8C8BB2AD B2ECE5A4 EFC08AF2 25A9B864
------ END LICENSE ------

主題配置

  • 開啟設定

Mac 中 Sublime 主題字型配置

具體配置如下:

{
    "auto_complete": true,
    "auto_indent": true,
    "auto_match_enabled": true,
    "bold_folder_labels": true,
    "color_scheme": "Packages/ayu/ayu-dark.sublime-color-scheme",
    "draw_white_space": "none",
    "font_face": "Consolas",
    "font_size": 12,
    "highlight_line": true,
    "ignored_packages":
    [
        "Vintage"
    ],
    "line_padding_bottom": 4,
    "line_padding_top": 4,
    "preview_on_click": false,
    "rulers":
    [
        100
    ],
    "save_on_focus_lost": true,
    "scroll_past_end": true,
    "show_encoding": true,
    "show_full_path": true,
    "show_line_endings": true,
    "smart_indent": true,
    "tab_size": 4,
    "theme": "ayu-dark.sublime-theme",
    "translate_tabs_to_spaces": true,
    "trim_automatic_white_space": true,
    "trim_trailing_white_space_on_save": true,
    "use_tab_stops": true,
    "word_wrap": true,
    "wrap_width": 96
}

直譯器配置

選單欄選擇直譯器:
「Tools」->「Build System」->「Python3」
語法高亮:
「View」->「Syntax」->「Python」

Python3.sublime-build:

{
    // "working_dir": "$file_path",
    "cmd": ["./env/bin/python3", "-u", "$file"],
    "file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
    "selector": "source.python",
    // "shell": "true",
}

Sublime 中執行指令碼的快捷鍵是 command + B

本作品採用《CC 協議》,轉載必須註明作者和本文連結

相關文章