Sublime使用,安装插件

1.安装Package Control

从菜单 View - Show Console 或者 ctrl + ~ 快捷键,调出 console。将以下 Python 代码粘贴进去并 enter 执行,不出意外即完成安装。

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

手动安装:
可能由于各种原因,无法使用代码安装,那可以通过以下步骤手动安装Package Control:
1.点击Preferences > Browse Packages菜单
2.进入打开的目录的上层目录,然后再进入Installed Packages/目录
3.下载 Package Control.sublime-package 并复制到Installed Packages/目录
4.重启Sublime Text。

使用方法:
快捷键 Ctrl+Shift+P(菜单 – Tools – Command Paletter),输入 install 选中Install Package并回车,输入或选择你需要的插件回车就安装了(注意左下角的小文字变化,会提示安装成功)。

2.安装CodeFormatter插件

在启动Sublime Text 3程序后,使用快捷键 “ Ctl+Shift+P ”,再选择 "Package Control: Install Package"

如果想对PHP格式化,需要PHP5.6以上版本,而且需要配置sublime的(package setttings > codeFormatter >settings default

"codeformatter_php_options": {
    "syntaxes": "php", // Syntax names which must process PHP formatter
    "php_path": "D:/phpstudy/php/php-5.6.27-nts/php.exe", // Path for PHP executable, e.g. "/usr/lib/php" or "C:/Program Files/PHP/php.exe". If empty, uses command "php" from system environments
    "format_on_save": false, // Format on save
    "php55_compat": false, // PHP 5.5 compatible mode
    "psr1": false, // Activate PSR1 style
    "psr1_naming": false, // Activate PSR1 style - Section 3 and 4.3 - Class and method names case
    "psr2": true, // Activate PSR2 style
    "indent_with_space": 4, // Use spaces instead of tabs for indentation
    "enable_auto_align": true, // Enable auto align of = and =>
    "visibility_order": true, // Fixes visibility order for method in classes - PSR-2 4.2
    "smart_linebreak_after_curly": true, // Convert multistatement blocks into multiline blocks
    // Enable specific transformations. Example: ["ConvertOpenTagWithEcho", "PrettyPrintDocBlocks"]
    // You can list all available transformations from command palette: CodeFormatter: Show PHP Transformations
    "passes": [],
    // Disable specific transformations
    "exclude": []
},

3.安装主题美化
https://github.com/ihodev/sublime-boxy
安装方法:Ctrl(Mac下Cmd)+Shift+P

  1. install package -> Boxy Theme
  2. install package -> a File Icons
    BOXY
    BOXY

    Release
    Release
    Downloads
    Downloads
    Build Status
    Build Status
    Twitter
    Twitter
    Make a donation at patreon.com
    Make a donation at patreon.com

    A set of easy customizable interface and syntax themes for Sublime Text 3 3103+. Comes in, both, light and dark variations. There are dozens of options that enable you to personalize your experience with Boxy Theme
    , don't forget to check them out.
    Want to contribute some code? Excellent! Read up on our guidelines.
    If you have some problems, first search for a similar issue, and then report with new one. Please read the Known Issues section before reporting a new one.
    Want to learn more? See the wiki →.
    InstallationActivationIconsSkinsSettingsReferencesForumPackage ControlShare The Love
    [

](https://github.com/ihodev/sublime-boxy#installation)Installation
The easiest way to install is using Package Control, where Boxy is listed as **Boxy Theme
**.
Open Command Palette
using menu item Tools → Command Palette...

Choose Package Control: Install Package

Find Boxy Theme
and hit Enter

Restart Sublime TextmacOS : menu item Sublime Text → Quit Sublime Text

Windows: menu item File → Exit

Linux : menu item File → Exit

Read more →
[

](https://github.com/ihodev/sublime-boxy#activation)Activation
Activate the UI theme and color scheme by modifying your user preferences file, which you can find using the menu itemPreferences → Package Settings → Boxy Theme → Preferences
.
Also you can use commands provided by the theme:
Open Command Palette
using menu item Tools → Command Palette...

Choose Boxy Theme: Activation
or Boxy Theme: Configuration

Hit Enter

DON'T FORGET TO RESTART SUBLIME TEXT AFTER ACTIVATING THE THEME.

Read more →
[

](https://github.com/ihodev/sublime-boxy#icons)Icons
Starting 5.0.0 this theme requires A File Icon package for enhanced support of the file-specific icons. Please install the package and restart Sublime Text.
[

](https://github.com/ihodev/sublime-boxy#skins)Skins
You can activate skins by using commands provided by Skins package:
Open Command Palette
using menu item Tools → Command Palette...

Choose Select Skin
to change the skin
Choose Boxy Theme: Activation
or Boxy Theme: Configuration
to change the UI theme and color scheme

Or do this manually by modifying your user preferences file, which you can find using the menu item Preferences → Package Settings → Boxy Theme → Preferences
.
DON'T FORGET TO RESTART SUBLIME TEXT AFTER ACTIVATING THE SKIN.

[

](https://github.com/ihodev/sublime-boxy#boxy-monokai--predawn)Boxy Monokai ★ Predawn
Note: This skin is heavily inspired by Predawn Theme. Install or support original if it better fits your needs.


The screenshot above shows next options in action:
// Activation"color_scheme": "Packages/Boxy Theme/schemes/Boxy Monokai.tmTheme","theme": "Boxy Monokai.sublime-theme",

// Settings"theme_accent_tangerine": true,"theme_autocomplete_item_selected_colored": true,"theme_bar_margin_top_sm": true,"theme_dropdown_atomized": true,"theme_find_panel_close_hidden": true,"theme_icon_button_highlighted": true,"theme_panel_switcher_atomized": true,"theme_quick_panel_item_selected_colored": true,"theme_quick_panel_size_md": true,"theme_scrollbar_colored": true,"theme_scrollbar_line": true,"theme_sidebar_close_always_visible": true,"theme_sidebar_folder_atomized": true,"theme_statusbar_size_md": true,"theme_tab_close_always_visible": true,"theme_tab_selected_overlined": true,"theme_tab_size_md": true,

The operating system is Windows. The font used for the code is Operator Mono.
Installed packages:
Bracket Highlighter
Sublime Linter

[

](https://github.com/ihodev/sublime-boxy#boxy-nova--minimal)Boxy Nova ★ Minimal


The screenshot above shows next options in action:
// Activation"color_scheme": "Packages/Boxy Theme/schemes/Boxy Nova.tmTheme","theme": "Boxy Nova.sublime-theme",

// Settings"theme_accent_mono": true,"theme_button_rounded": true,"theme_find_panel_close_hidden": true,"theme_find_panel_size_xs": true,"theme_grid_border_size_sm": true,"theme_icons_atomized": true,"theme_minimap_viewport_opacity_xh": true,"theme_sidebar_folder_arrow": true,"theme_sidebar_heading_bold": true,"theme_sidebar_highlight_selected_text_only": true,"theme_sidebar_highlight_text_only": true,"theme_sidebar_indent_top_level_disabled": true,"theme_sidebar_indent_xl": true,"theme_size_md": true,"theme_tab_arrows_hidden": true,"theme_tab_close_always_visible": true,"theme_unified": true

The operating system is Windows. The font used for the code is Consolas. The UI font is Consolas (via addon).
Installed packages:
Boxy Theme Addon - Font Face
Bracket Highlighter
A File Icon

[

](https://github.com/ihodev/sublime-boxy#boxy-ocean--material)Boxy Ocean ★ Material
Note: This skin is heavily inspired by Material Theme. Install or support original if it better fits your needs.


The screenshot above shows next options in action:
// Activation"color_scheme": "Packages/Boxy Theme/schemes/Boxy Ocean.tmTheme","theme": "Boxy Ocean.sublime-theme",

// Settings"theme_accent_cyan": true,"theme_bar": true,"theme_bar_logo_atomized": true,"theme_bar_shadow_hidden": true,"theme_button_rounded": true,"theme_dirty_colored_always": true,"theme_icons_materialized": true,"theme_scrollbar_rounded": true,"theme_sidebar_highlight_selected_text_only": true,"theme_sidebar_highlight_text_only": true,"theme_sidebar_indent_top_level_disabled": true,"theme_size_md": true,"theme_tab_highlight_text_only": true,"theme_tab_selected_transparent": true,"theme_tab_selected_underlined": true,"theme_tab_size_xxl": true,"theme_unified": true,

The operating system is Ubuntu. The font used for the code is Roboto Mono. The UI font is Roboto Medium (via addon).
Installed packages:
Boxy Theme Addon - Font Face
Color Highlighter
Color ​Helper

[

](https://github.com/ihodev/sublime-boxy#boxy-solarized-dark--code)Boxy Solarized Dark ★ Code


The screenshot above shows next options in action:
// Activation"color_scheme": "Packages/Boxy Theme/schemes/Boxy Solarized Dark.tmTheme","theme": "Boxy Solarized Dark.sublime-theme",

// Settings"theme_accent_purple": true,"theme_bar": true,"theme_bar_shadow_hidden": true,"theme_dropdown_atomized": true,"theme_find_panel_atomized": true,"theme_sidebar_disclosure": true,"theme_sidebar_folder_mono": true,"theme_sidebar_indent_sm": true,"theme_statusbar_colored": true,"theme_statusbar_size_md": true,"theme_tab_highlight_text_only": true,"theme_tab_selected_filled": true,"theme_tab_size_md": true,"theme_tabset_line_visible": true,"theme_unified": true,

The operating system is macOS. The font used for the code is SF Mono. The UI font is SF Mono (via addon).
Installed packages:
Boxy Theme Addon - Font Face
Boxy Theme Addon - Mono File Icons
Boxy Theme Addon - Widget Font Size
Bracket Highlighter

[

](https://github.com/ihodev/sublime-boxy#boxy-solarized-light--iowa)Boxy Solarized Light ★ Iowa


The screenshot above shows next options in action:
// Activation"color_scheme": "Packages/Boxy Theme/schemes/Boxy Solarized Light.tmTheme","theme": "Boxy Solarized Light.sublime-theme",

// Settings"theme_accent_green": true,"theme_bar": true,"theme_bar_colored": true,"theme_bar_shadow_hidden": true,"theme_button_rounded": true,"theme_icons_atomized": true,"theme_quick_panel_size_md": true,"theme_scrollbar_rounded": true,"theme_sidebar_close_always_visible": true,"theme_sidebar_folder_materialized": true,"theme_sidebar_highlight_selected_text_only": true,"theme_sidebar_highlight_text_only": true,"theme_sidebar_indent_top_level_disabled": true,"theme_statusbar_size_md": true,"theme_tab_highlight_text_only": true,"theme_tab_line_size_lg": true,"theme_tab_selected_transparent": true,"theme_tab_selected_underlined": true,"theme_tab_size_lg": true

The operating system is Windows. The font used for the code is Space Mono.
Installed packages:
Bracket Highlighter
Sublime Linter

[

](https://github.com/ihodev/sublime-boxy#boxy-tomorrow--numix)Boxy Tomorrow ★ Numix


The screenshot above shows next options in action:
// Activation"color_scheme": "Packages/Boxy Theme/schemes/Boxy Tomorrow.tmTheme","theme": "Boxy Tomorrow.sublime-theme",

// Settings"theme_accent_numix": true,"theme_autocomplete_item_selected_colored": true,"theme_dropdown_atomized": true,"theme_find_panel_materialized": true,"theme_grid_border_size_xs": true,"theme_popup_border_visible": true,"theme_quick_panel_border_visible": true,"theme_quick_panel_item_selected_colored": true,"theme_scrollbar_colored": true,"theme_scrollbar_line": true,"theme_sidebar_disclosure": true,"theme_tab_selected_transparent": true,"theme_tab_selected_underlined": true,"theme_tab_size_lg": true,"theme_unified": true,

The operating system is Ubuntu. The font used for the code is Fira Code. The UI font is Fira Code (via addon)
Installed packages:
Boxy Theme Addon - Font Face

[

](https://github.com/ihodev/sublime-boxy#boxy-yesterday--atom)Boxy Yesterday ★ Atom


The screenshot above shows next options in action:
// Activation"color_scheme": "Packages/Boxy Theme/schemes/Boxy Yesterday.tmTheme","theme": "Boxy Yesterday.sublime-theme",

// Settings"theme_accent_sky": true,"theme_button_rounded": true,"theme_find_panel_close_hidden": true,"theme_find_panel_size_xs": true,"theme_grid_border_size_lg": true,"theme_icon_button_highlighted": true,"theme_icons_atomized": true,"theme_popup_border_visible": true,"theme_quick_panel_size_md": true,"theme_scrollbar_rounded": true,"theme_sidebar_disclosure": true,"theme_sidebar_indent_top_level_disabled": true,"theme_statusbar_size_md": true,"theme_tab_rounded": true,"theme_tab_selected_prelined": true,

The operating system is macOS. The font used for the code is Iosevka. The UI font is San Francisco Text (via addon).
Installed packages:
Boxy Theme Addon - Font Face
Boxy Theme Addon - Widget Font Size
PlainNotes

[

](https://github.com/ihodev/sublime-boxy#share-the-love)Share The Love
I've put a lot of time and effort into making Boxy Theme
awesome. If you love it, you can buy me a coffee. Every cup helps! I promise it will be a good investment

:wink:
:wink:

Donate with: Patreon.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 206,126评论 6 481
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 88,254评论 2 382
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 152,445评论 0 341
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 55,185评论 1 278
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 64,178评论 5 371
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,970评论 1 284
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,276评论 3 399
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,927评论 0 259
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 43,400评论 1 300
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,883评论 2 323
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,997评论 1 333
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,646评论 4 322
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,213评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,204评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,423评论 1 260
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 45,423评论 2 352
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,722评论 2 345

推荐阅读更多精彩内容