欢迎来到禹都一只猫Typecho分站---

MENU

sublime实用插件

April 24, 2018 • 默认分类阅读设置

Sublime Text 3

就Sublime Text 3来说主要的扩展包如下

Sublime Text主题

配置文件

  • Sublime Text > Preferences > Settings
{
    "color_scheme": "Packages/ayu/ayu-mirage.tmTheme",
    "font_face": "Monaco",
    "font_size": 16,
    "highlight_line": true,
    "ignored_packages":
    [
        "Vintage"
    ],
    "overlay_scroll_bars": "enabled",
    "tab_size": 4,
    "theme": "ayu-mirage.sublime-theme",
    "translate_tabs_to_spaces": true,
    "ui_big_tabs": true,
    "ui_fix_tab_labels": true,
    "ui_font_size_small": true,
    "ui_separator": true
}
  • Sublime Text > Preferences > Key Bindings
[
    {"keys":["super+\\"],"command": "toggle_side_bar"}
]
  • Sublime Text > Preferences > Package Settings > PHP Code Sniffer -> Settings User

这里需要安装php-cs-fixer

brew install php-cs-fixer

下面是Sublime Text > Preferences > Package Settings > PHP Code Sniffer -> Settings User 的内容

{
    "phpcs_path": "/usr/local/bin/phpcs",
    "phpcs_show_errors_on_save": true,
    "phpcs_show_gutter_marks": true,
    "phpcs_outline_for_errors": true,
    "php_cs_fixer_on_save": true,
    "php_cs_fixer_executable_path":"/usr/local/bin/php-cs-fixer",
    "php_cs_fixer_additional_args": {
        "--fixers":"-psr0, blankline_after_open_tag, braces, concat_without_spaces, double_arrow_multiline_whitespaces, duplicate_semicolon, elseif, empty_return, encoding, eof_ending, extra_empty_lines, function_call_space, function_declaration, include, indentation, linefeed, join_function, line_after_namespace, list_commas, logical_not_operators_with_successor_space, lowercase_constants, lowercase_keywords, method_argument_space, multiline_array_trailing_comma, multiline_spaces_before_semicolon, multiple_use, namespace_no_leading_whitespace, no_blank_lines_after_class_opening, no_empty_lines_after_phpdocs, object_operator, operators_spaces, parenthesis, remove_leading_slash_use, remove_lines_between_uses, return, self_accessor, short_array_syntax, short_echo_tag, short_tag, single_array_no_trailing_comma, single_blank_line_before_namespace, single_line_after_imports, single_quote, spaces_before_semicolon, spaces_cast, standardize_not_equal, ternary_spaces, trailing_spaces, trim_array_spaces, align_equals, align_double_arrow, unary_operators_spaces, visibility, whitespacy_lines, phpdoc_indent"
    },
    "phpcbf_path": "/usr/local/bin/phpcbf",
    "phpcbf_on_save": true,
    "phpcbf_show_quick_panel": true,
    "phpcbf_executable_path": "/usr/local/bin/phpcbf"
}
无标签
Archives QR Code Tip
QR Code for this page
Tipping QR Code
Leave a Comment

已有 2 条评论
  1. 大佬好~在引擎上进来的,初次见面请多关照~@(呵呵)

    1. @桃先森你好,目前我的这个站点基本不更新东西了,东西都已经转移至https://olei.me上了~~欢迎访问,可以友链~~