简体   繁体   中英

What does the scheme dropdown menu do in Phpstorm?

In the settings window of Phpstorm, there is a dropdown box labelled scheme

在此处输入图片说明

What does it do?

It's used to

choose the code style scheme to be used as the base for your custom coding style for the selected language ( Source ).

In other words: after selecting a scheme, you can set different formatting options , like tabs vs spaces, tab size or line breaks etc. To use those settings in your current project, you need to click Manage , select your edited scheme and click Copy to Project . After this, you can press Ctrl + Alt + L ( Code > Reformat Code... ) in the editor to reformat a file according to those scheme settings.

What does it do?

You may be surprised .. but it allows you to choose another (different) Code Style scheme for this project.

PhpStorm supports globally defined schemas (by default it provides only one -- "Default") which can be used by any project and project-specific schema called "Project" which available for this project only (and stored together with other project-specific settings).

You can read more in official help page .


The Code Style is used for code formatting: be it automatic as you type / use live templates etc .. or manual reformat via Code | Reformat Code... Code | Reformat Code...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM