Giter Site home page Giter Site logo

sublime-init's Introduction

sublime-init

Sublime 编辑器初始化,常用插件,主题,字体等设置.

插件

  • BracketHighlighter
  • phpfmt
{
    "version": 1,
    "php_bin": "/usr/local/Cellar/php70/7.0.22_14/bin/php", // Path for PHP executable, e.g. "/usr/lib/php" or "C:/Program Files/PHP/php.exe". If empty, uses command "php" from system environments
    "indent_with_space": true,
    "smart_linebreak_after_curly": true,
    "psr1": true, // Activate PSR1 style
    "psr1_naming": true, // Activate PSR1 style - Section 3 and 4.3 - Class and method names case
    "psr2": true, // Activate PSR2 style
    "format_on_save": false, // Format on save. Either a boolean (true/false) or a string regexp tested on filename. Example : "^((?!.min.|vendor).)*$"
    "enable_auto_align": true, // Enable auto align of = and =>
    "indent_with_space": 4, // Use spaces instead of tabs for indentation
    "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

    // "syntaxes": "php", // Syntax names which must process PHP formatter


    // Enable specific transformations. Example: ["ConvertOpenTagWithEcho", "PrettyPrintDocBlocks"]
    // You can list all available transformations from command palette: CodeFormatter: Show PHP Transformations
    // You can also see examples of many transformations at https://github.com/akalongman/sublimetext-codeformatter/blob/master/PHP-Transformations.md
    "passes": [
        "AlignDoubleSlashComments", "AlignEquals", "AlignGroupDoubleArrow",
        "AlignTypehint", "DoubleToSingleQuote",
        "GeneratePHPDoc", "IndentTernaryConditions", "NoSpaceAfterPHPDocBlocks",
        "ReindentAndAlignObjOps", "ReindentSwitchBlocks", "ShortArray", 
        "SpaceBetweenMethods", 
        "StripNewlineAfterClassOpen",
    ],

    // Disable specific transformations
    "excludes": []
}
  • php-cs-fixer
  • jsFormat
  • Docblockr

Sublime Setting

{
    "color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
    "font_size": 15,
    "ignored_packages":
    [
        "Vintage"
    ],
    "translate_tabs_to_spaces": true,
}

sublime-init's People

Contributors

bithaolee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.