To create new file from template with default file name

已回答

How to write a template to create a new file with default file name?

For instance, we can create a new 'setup.py' from Pycharm menu.
This has a default name as 'setup'.

I know that there is a built-in parameter like ${NAME}.
Although I try to set this one by using something like

#set ( ${NAME} = 'default-name')

, when the new file created with this template,
it turns out that the dialog box appears with the empty file name field.

1

Hi Epsilonxe,

Thank you for contacting PyCharm support.

Unfortunately, it is not possible at the moment.

Kind regards,

Sergey

https://www.jetbrains.com

The Drive to Develop

0

This could be useful in some contexts. For example, it's common to include a "index.js/ts" file in javascript lib folders for exports.

0

请先登录再写评论。