Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize PHPStorm comments?

This is an auto created comment block in PHPStorm

    <?php
/**
 * Created by 
 * User: 
 * Date: 
 * Time: 
 */   

I want to customize the block (Eg: instead of Created by use Author etc) I tried in settings. Could not figure out.

like image 742
user1166240 Avatar asked Aug 05 '14 01:08

user1166240


People also ask

How do I comment in PhpStorm?

Select multiple lines and use the Comment with Line Comment ( Ctrl + / in the default keymap on Windows, can be changed in Settings | Keymap ). There is also Comment with Block Comment that works for file types that have special style comment for code blocks (not applicable for . htaccess).

What are phpDoc comments?

phpDoc blocks are descriptive comments that are part of the application code. They are used to describe the PHP element in the exact location in the code where the element appears. The block consists of a short description, long description, and phpDoc tags.

Is PhpStorm any good?

PhpStorm is an excellent choice for large projects, especially those that involve a large number of source files, different languages, build and compilation steps, and dependencies.

Is PhpStorm a text editor?

When you need to edit just one file without creating or loading the whole project in PhpStorm, you can use the LightEdit mode. Keep in mind that the LightEdit mode works as a text-like editor, and it doesn't support the usual IDE editor features such as code completion, or code navigation.

What is PhpStorm's comments feature?

PhpStorm lets you add special types of comments that are highlighted in the editor, indexed, and listed in the TODO tool window. This way you and your teammates can keep track of issues that require attention.

How do I keep track of issues in PhpStorm?

This way you and your teammates can keep track of issues that require attention. By default, there are two patterns recognized by PhpStorm: TODO and FIXME in both lower and upper case. These patterns can be used inside line and block comments of any supported file type. You can modify the default patterns or add your own patterns if necessary.

How do I change the theme style in PhpStorm?

PhpStorm has released a new feature that allows you to quickly find and edit the theme style for a given line you want to change. To change the theme style for a given line, put your cursor on the line you want to change, press Double Shift (Search Everywhere), and type Jump to Colors & Fonts.

What is a PhpStorm code inspection?

PhpStorm provides a set of predefined code inspections targeted at PHPDoc blocks. These inspections check whether classes, methods, functions, variables, and constants are supplied with a PHPDoc comment and whether the tags in the comment match the documented item.


1 Answers

Go to Settings -> IDE Settings -> File and Code Templates.

Then on Includes tab select PHP File Header item.

Also relevant: Templates tab, PHP File item.

like image 98
zerkms Avatar answered Oct 02 '22 16:10

zerkms