Home > Development Tools > phpstorm > PhpStorm comment time setting

PhpStorm comment time setting

(*-*)浩
Release: 2019-12-25 15:35:32
Original
5762 people have browsed it

PhpStorm comment time setting

##Normal function comment template does not have time and date                                                                                                                                                                                                                                                                                . First add a hotkey, add a template named user in Live Templates, create a subclass called xxx, and then write the following information in the Templates text below

$DATE$ $TIME
Copy after login
Then Click Edit variables to edit the content as shown below

PhpStorm comment time setting Then click Change (the first time it seems to be red Define) to select the application file, we can select all PHP Well, after you enter xxx in the php file and press the Tab key, the date and time will appear. So how do you combine it with the comment template?

PhpStorm comment time settingWe find the function comment template, replace the bottom */ content with the content in the red box in the picture below, and then save it for us to try. ps: The author can just replace it with his own name!

PhpStorm comment time settingWhen we enter /** and press Enter, a comment as shown below appears. At this time, the cursor is located here xxx. At this time we press Press the Tab key and the time will appear.

PhpStorm comment time setting

         

The above is the detailed content of PhpStorm comment time setting. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template