Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to change the author variable in PyCharm

Tags:

pycharm

this question is related to PyCharm.

how do i change the value in the variable

__author__ = 'my login name' 

it takes my shell user variable. can i change it in my preference anywhere?

like image 792
Yousuf Jawwad Avatar asked Jan 19 '13 17:01

Yousuf Jawwad


People also ask

How do you change the author in Python?

2 Answers. Show activity on this post. In PyCharm, go to Preferences > IDE Settings > File and Code Templates and then click on the Python Script template and change it from the default to whatever you want.

How do you refactor a variable in PyCharm?

Press Shift+F6 or from the main menu, select Refactor | Rename. You can perform the rename refactoring in-place or press Shift+F6 again to open the Rename dialog. Enter a new name of the element to enable the Preview and Refactor buttons. You can specify additional options.

How do I edit a template in PyCharm?

Press Ctrl+Alt+S to open the IDE settings and select Editor | File and Code Templates. and modify the name, file extension, and body of the template as necessary. Apply the changes and close the dialog.


1 Answers

Open Settings | File Templates and change the text of "File Header" template to use your full name instead of ${USER}.

like image 195
yole Avatar answered Oct 02 '22 10:10

yole