How to set an empty extension for file templates?

Answered

Hi,

Is it possible to create a file template without any extension?

Preferences | Editor | File and Code Templates | Create Template (+)

I want to set the file name to "LICENSE" and leave the file extension blank.

Right now if I leave the extension blank, it inserts a dot "." at the end of my file name. e.g. "LICENSE."

Thanks

0
4 comments

Just remove that dot. 

1

Simple enough.

I was just trying to see if there was a way to not have to rename the file but that will suffice.

Thanks

0

Konstantin Annikov, I don't get this option. It always creates a file with `.`

Dockerfile.

0

Praveen Does it help if you close IntelliJ IDEA and delete `options/filetypes.xml` from the Configuration directory: https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#config-directory?

Does the issue occur with the default settings? File | Manage IDE Settings | Restore Default Settings...: https://i.imgur.com/kbrkC7w.png. Might be some plug-in causing this.

0

Please sign in to leave a comment.