Sublime Text
Table of Contents
sublimeText3 设置自动换行
- 打开视图菜单
- 启动Sublime Text 3应用程序。在菜单栏中,点击“View(视图)”选项。
- 勾选自动换行选项
- 在“View”菜单中,找到“Word Wrap(自动换行)”选项。点击这个选项,使其前面出现一个勾选标记。这样,当文本内容到达窗口边缘时,就会自动换行显示。
sublimeText3
- Package Control.sublime-package
- channel_v3.json
如何安装 Package Control(离线安装)
- 点击st3里面的菜单 “Preferences > Browse Packages” 或者 “首选项 > 浏览插件目录”
- 此时你所在的目录是 “Sublime Text 3/Packages”,进入到 “Sublime Text 3/Installed Packages”
- 下载 Package Control插件包,将该插件包复制到 "Installed Packages/" 目录内
- 重启 Sublime Text
Package Control 配置 channel_v3.json (本地使用)
- 下载 channel_v3.json 到本地 /path/xxx/channel_v3.json
- 点击 Preferences > Package Settings > Package Control > Settings - User
{ "bootstrapped": true, "channels": [ "/path/xxx/channel_v3.json" ], "in_process_packages": [ ], "installed_packages": [ "BracketHighlighter", "Git", "MarkdownEditing", "Package Control", "Pretty JSON", "rainbow_csv", "SqlBeautifier", "Tabnine" ] }
- 添加 "channels": ["/path/xxx/channel_v3.json"],
channel_v3.json(在线使用)
- 点击 Preferences > Package Settings > Package Control > Settings - User
- 添加 "channels": ["https://raw.githubusercontent.com/HBLong/channel_v3_daily/master/channel_v3.json"],
常用配置 settings-user
- 点击 Preferences > Settings > Settings - User
{ "auto_complete": true, "auto_complete_triggers": [ { "characters": ".(){}[],'\"=<>/\\+-|&*%=$#@! ", "selector": "source.python" }, { "characters": ":.(){}[],'\"=<>/\\+-|&*%=$#@! ", "selector": "source & - source.python - constant.numeric" }, { "characters": " qazwsxedcrfvtgbyhnujmikolpQAZWSXEDCRFVTGBYHNUJMIKOLP", "selector": "text" } ], "color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme", "dictionary": "Packages/Language - English/en_US.dic", "dpi_scale": 1.0, "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", "*.iml", "*.zip" ], "folder_exclude_patterns": [ ".svn", ".git", ".hg", "target", "CVS", ".idea", ".vscode" ], "font_size": 18, "ignored_packages": [ "Vintage" ], "line_padding_bottom": 1, "line_padding_top": 1, "preview_on_click": false, "save_on_focus_lost": true, "show_full_path": true, "tab_size": 2, "theme": "Default.sublime-theme", "update_check": false, "word_wrap": false }
按键绑定 keyBinding
- 点击 Preferences > Settings > Key Bindings - User
[ { "keys": [ "super+\\" ], "command": "reveal_in_side_bar" }, { "keys": [ "super+e" ], "command": "open_dir", "args": { "dir": "$file_path", "file": "$file_name" } }, { "keys": [ "super+shift+c" ], "command": "copy_path" }, { "keys": [ "super+ctrl+f" ], "command": "reindent" }, { "keys": [ "super+." ], "command": "goto_definition" }, { "keys": [ "ctrl+super+." ], "command": "goto_reference" }, { "keys": [ "ctrl+shift+s" ], "command": "auto_save" } ]
资源
- 包管理器下载
- 解决国内 https://packagecontrol.io 无法访问的问题
- channel_v3_daily
问题
Package Control.package_control.deps.oscrypto._ffi.FFIEngineError: Error initializing ctypes
- 打开ST控制台,运行以下代码
from urllib.request import urlretrieve;urlretrieve(url="https://github.com/wbond/package_control/releases/latest/download/Package.Control.sublime-package", filename=sublime.installed_packages_path() + '/Package Control.sublime-package')
注册码
—– BEGIN LICENSE —– Mifeng User Single User License EA7E-1184812 C0DAA9CD 6BE825B5 FF935692 1750523A EDF59D3F A3BD6C96 F8D33866 3F1CCCEA 1C25BE4D 25B1C4CC 5110C20E 5246CC42 D232C83B C99CCC42 0E32890C B6CBF018 B1D4C178 2F9DDB16 ABAA74E5 95304BEF 9D0CCFA9 8AF8F8E2 1E0A955E 4771A576 50737C65 325B6C32 817DCB83 A7394DFA 27B7E747 736A1198 B3865734 0B434AA5 —— END LICENSE ——