How do I open a script file in editor???
Answered
clion for mac 2020.2
I have a file "my_thing" (no extension)
has hashbang: #!/usr/bin/python
I want to EDIT the darn thing!!!
From the project menu, It is there along with all the other files. But when I click on it it executes it. I WANT To EDIT, not EXECUTE!
HELP.
Thanks
Please sign in to leave a comment.
Can't reproduce that.
How the IDE recognizes the file? May you select the file in Project View and call "Quick Documentation" action to check that? Like this: https://i.imgur.com/EBJL9pn.png
By the way, IntelliJ IDEA does not recognize the file by hashbang. Here is the feature request for that: https://youtrack.jetbrains.com/issue/IDEA-227299
In case, you need the file to exist without extension, please mark it as Python file manually (Associate with file type in context menu of the file): https://i.imgur.com/5Wg8FRd.png