Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change ${USER} value in WebStorm or PhpStorm?

How to change ${USER} value in JetBrains WebStorm?

I was searching under Settings-> File and Code Templates but there I can change only structure of the temple instead of value of variable USER.

/**
* Created by ${PRODUCT_NAME}.
* User: ${USER}
* Date: ${DATE}
* Time: ${TIME}
* To change this template use File | Settings | File Templates.
*/
like image 614
NIKHIL C M Avatar asked Jun 02 '17 12:06

NIKHIL C M


People also ask

Is WebStorm the same as PhpStorm?

PHPStorm incorporates all the functionality that WebStorm comes equipped with (CSS, JavaScript HTML), PLUS full-fledged PHP support (and databases support).

How do I change my username on Jetbrain?

On the profile page sidebar, choose General. Use tabs on top to edit the different parts of the profile: Choose Personal Data to edit: first and last name, username.

How do I change accounts in PhpStorm?

From the main menu, select File | New Projects Setup | Settings/Preferences for New Projects, and click Editor | Inspections. In the Profile list, select the profile that you want to share, apply the changes and close the dialog.


1 Answers

Goto Settings-> File and Code Templates

choose desired file type and use set command.

  #set( $USER = "your desired name" )

For example: For Javascript

/**
 * #set( $USER = "your desired name" )
 * Created by ${USER} on ${DATE}.
 */
like image 176
NIKHIL C M Avatar answered Sep 23 '22 19:09

NIKHIL C M