Home  >  Article  >  php教程  >  Install the code formatting plug-in CodeFormatter on Sublime Text 3

Install the code formatting plug-in CodeFormatter on Sublime Text 3

高洛峰
高洛峰Original
2016-11-03 14:17:065261browse

1. Understand the CodeFormatter plug-in

                                                                                  Written code in Sublime Text 3. In order to make our code format beautiful and tidy, we need a plug-in that can automatically format the code. I found that the CodeFormatter plug-in is good here. It supports several common programming languages:

* PHP
* JavaScript/JSON
* HTML
* CSS
* SCSS
* Python
* Visual Basic/VBScript
* Coldfusion/Railo/Lucee

2. Install the CodeFormatter plug-in

After starting the Sublime Text 3 program, use the shortcut key "Ctl+Shift+P", then select "Package Control: Install Package",

Install the code formatting plug-in CodeFormatter on Sublime Text 3

Wait for the list of installable items In the plug-in list, enter "CodeFormatter" to find it and click to install.

Install the code formatting plug-in CodeFormatter on Sublime Text 3

3. Set up CodeFormatter

According to your own programming environment, you can set some settings through "Preferences > package settingttings > codeFormatter > settings-user" Parameters, such as PHP installation path.

4. Use CodeFormatter

to open the file that needs formatted code, such as the p020.php file here, and then use the shortcut key "ctrl+alt+f".

Install the code formatting plug-in CodeFormatter on Sublime Text 3

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn