
“visibility_order”: true, // Fixes visibility order for method in classes - PSR-2 4.2 “enable_auto_align”: true, // Enable auto align of = and => “indent_with_space”: 4, // Use spaces instead of tabs for indentation

“psr1_naming”: false, // Activate PSR1 style - Section 3 and 4.3 - Class and method names case Either a boolean (true/false) or a string regexp tested on filename. “format_on_save”: false, // Format on save. If empty, uses command “php” from system environments “/usr/lib/php” or “C:/Program Files/PHP/php.exe”. “php_path”: “”, // Path for PHP executable, e.g. “syntaxes”: “php”, // Syntax names which must process PHP formatter You can list all available transformations from Command Palette: CodeFormatter: Show PHP TransformationsĮxamples of many transformations can be found here: PHP Transformation Examples On Linux/OSx after installation of package, you must set chmod +x to file fmt.phar in folder %PACKAGESDIR%/CodeFormatter/codeformatter/lib/phpbeautifier Formatter-specific notesįollowing are notes specific to individual formatters that you should be aware of: PHP With Git: Clone the repository in your Sublime Text “Packages” directory: Without Git: Download the latest source from GitHub and copy the CodeFormatter folder to your Sublime Text “Packages” directory.

The advantage of using this method is that Package Control will automatically keep CodeFormatter up to date with the latest version.
#Js formatter sublime install#
Select “Package Control: Install Package”, wait while Package Control fetches the latest package list, then select CodeFormatter when the list appears. Once you install Package Control, restart Sublime Text and bring up the Command Palette ( Command+Shift+P on OS X, Control+Shift+P on Linux/Windows). With the Package Control plugin: The easiest way to install CodeFormatter is through Package Control, which can be found at this site: If you like the software, don't forget to donate to further development of it! CodeFormatter is a Sublime Text 2/3 plugin that supports format (beautify) source code.ĬodeFormatter has support for the following languages:
