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?
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.
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.
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.
Open Settings | File Templates and change the text of "File Header" template to use your full name instead of ${USER}.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With