I will often write very small scripts for personal use (no need to package and distribute). I'd like to use PyCharm when writing these and I'd like to call the script without a .py extension. I can't seem to find a way to create a python script in PyCharm without the extension. I just want it to have a shebang (#!) line, and be directly executable. I don't want to have to execute "python foobar.py", but just "./foobar" instead.
Edit: A workaround is that I can create the file without the .py extension outside of PyCharm and then open it up in PyCharm. But the end goal is to have PyCharm create the file itself and not slap a .py on the end of the name. (This is on Unix, btw.)
Edit2: It is now clear to me that people ignore the question and the tag and just read the description. My next question will repeat that actual question in the description. Sorry for the confusion.
The question appears to be how to create a Python file without .py extension using PyCharm (3.0.2
) so that syntax highlighting and code completion would be still available:
File | New | File
. test
. Python files
.