How to change file type of open file without binding file extension to new file type?
I'd like to use that to view python scripts that don't have any extension. So there is no extension to associate file type with.
You should be able to just try opening the file in IntelliJ, and you will automatically be prompted to associate it with a language type.
In the case of files without an extension the association is made on the entire file name, rather than a set of extensions (no 'wildcard' character).
Take a look at how the association window automatically handles two different types of unknown files:
The 'File pattern' field is editable as well, so if your files have a common pattern to them, you can use a wildcard (*
) to quickly associate them all .
There is no way to just open a file without creating this association, otherwise IntelliJ couldn't perform any syntax highlighting or the like, but it is possible to review/remove any file associations you have created under Settings - Editor > File Types (You can quickly add new associations this way too).
Good news : IDEA now allow to temporarily set a file type : open "Actions" menu (Ctrl+Shift+A), and look for "override file type" item.
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