New and permanent activation code for Phpstorm in 2021

1. What is PhpStorm

1. PHPStorm is a lightweight and convenient PHP IDE developed by JetBrains. It is designed to provide user efficiency, understand the user's coding deeply, provide intelligent code completion, fast navigation and instant error checking.

2. PhpStorm can help users adjust their coding at any time, run unit tests or provide visual debug functions.

2. PhpStorm has three activation methods

1. Use the officially registered account to activate. You need to register your account via email on the official website.

2. Use the activation code to activate.

3. Use the license server to activate.

These three activation methods are recommended to use activation code and account activation , because the broken-solution version and third-party server software are not safe

Three. Phpstorm activation code

If the PhpStorm activation code below is invalid, you can follow the WeChat official account: PHP God , and then reply "activation code " to get the latest activation code , the activation code of the official account is invalid and the message can be updated~~~~~~~~ ~~~~~



The activation code is provided by enthusiastic netizens. I support it. Genuine

4. What are the advantages of PhpStorm?

1. Cross-platform, supports the refactor function for PHP, and has the local history function (local history function).

2. Automatically generate phpdoc comments, which is very convenient for large-scale programming, with built-in support for Zencode.

3. Generate the inheritance diagram of the class. If there is a class, after multiple inheritance, you can use this function to view all its parent relationships. Support code restructuring to facilitate code modification.

Five. Be sure to pay attention to the following three points

1. If the prompt (key is invalid) is completely uninstalled, reinstall it to solve it.

2. If you have modified the host, please delete the URL you added and reactivate it.

3. If you have cracked it before, please uninstall it completely and reinstall it to solve it.

Six, the function of the artifact phpstorm is explained in detail

1. Live Templates code snippet

A) Let's first introduce the most basic function of a code snippet. The goal we want to achieve is to type the 4 characters "quan" in the html file or php file. How to achieve it?

1). Open "File"-"Settings", find and click "Live Templates",

2). Click the + sign on the right (there are two options for version 7.0, choose Live Templates),

3). Abbreviation is the abbreviation of the code snippet you want to output in the future, now enter "quan",

4). Description is the description of the code snippet, which is convenient for us to know what this code is, we enter "webmaster circle URL",

5). Template text is the content of the code snippet, we enter "".

6). There is a line of red words below is very important, No applicable contexts yet, Define allows you to choose which type of file your code snippet works in. This must be selected. When there is no choice, the following picture is green As shown in the box, it is classified under a user category. Now we want to make it work in html and php files, so tick the html and php in the pop-up box (the words below will not be red after selection)

Tip: Expand with is to set what shortcut key to display the set code snippets, we use the default Tab key to leave it unchanged.

After saving and restarting, open a html or php file to test it.

B) The following introduces a more complicated usage of a code snippet.

Assuming that we are a master who knows a lot of cms, phpcms v9, empire, dream weaving, etc. are all indifferent, but each cms has its own label, unless you remember all of them, otherwise you can only open it Copy and paste the default template or manual. Now we use phpstorm code snippets to set up a quick input method, and give an example of how to quickly input phpcms v9 keyword tags and empire keyword tags.

1). Open "File"-"Settings", find and click "Live Templates",

2). Click the + sign on the right (there are two options for version 7.0, choose Live Templates),

3). Abbreviation is the abbreviation of the code snippet you want to output in the future, now enter "cmskeywords",

4). Description is the description of the code snippet, which is convenient for us to know what this code is, we enter "cms keyword",

5). Template text is the content of the code snippet. This time is different from the previous one. We have to enter a variable "$var$". After entering, we will find that the gray button "Edit variables" on the right becomes clickable. ,

6). Don't forget to click on the red word "Define" below, and set html and php to tick. This is because some cms templates are html and some are php types. This friend who understands cms, you know.

7) Then click on the button "Edit variables" that has been clicked just now

It can be seen that "Derfault value" is the default value. We enter ""Page Keyword"". Note that this is a string type, with double quotes in English. There are many functions in the previous "Expression", which we will introduce It is the "enum()" enumeration function. We enter "enum("empire keyword","phpcms keyword")". The parameters are in parentheses. The parameters are enclosed in English double quotation marks, and the parameters are separated by English commas.

8) Repeat steps 2-6 below, click the + sign on the right, select Live Templates, enter "Empire Keyword" in Abbreviation (this is the same as the parameter you entered in the enumeration function), and you can write the Description as you like , You can also write "Empire Keyword", it doesn't matter; enter the keyword tag "[!–pagekey–]" of the Empire in the Template text, click "Define", set html and php to tick

9) Repeat steps 2-6 again, set the "phpcms keyword" to "{$SEO['keyword']}"

OK, it's time to witness the miracle, let's test our results. Open a html or php file, why? Because we just set the code snippets that we set can only be used in these two types of files. Then enter "cmskeywords" where needed, press Tab, is there a drop-down menu, the content inside is just set in the enumeration function, use the up and down keys to select any one and press Enter, then press Tab again, you're done Up.

At each step, think about where you set it just now to produce such a result. Just imagine, if you know N types of cms, how much time you can save after setting it up, and the code you want to output may be very long. It can be output all at once, and you can draw inferences about it and use this method to create more miracles.

2. Import and export of configuration

Open "File"-"Export Setting", you can export the things we have worked so hard to configure. Ah Q's warm tips: You can modify the storage path of this configuration file, put it in a folder that can be synchronized with the network, such as Sina microdisk, and modify the configuration path file in JetBrains under the installation directory of your software. \PhpStorm 7.0\bin\, open it with Notepad, copy the 8th line, remove the # in front, and put the path of your synchronization folder after it. The plug-in address can also be placed in your synchronization folder, so that you are in The company and home can use this configuration file more quickly.

Guess you like