Reputation: 454
I am trying to name a HTML file as index.html
in the WebStorm IDE. However, I am unable to open this file to edit it if I name it index
- it directly opens in the browser.
I can open other .html
files in WebStorm for editing if they are named something other than index.html
.
If I go to Refactor > Rename
and change the name of index.html
file to something else, I am again not able to edit it.
It seems like there must be a setting for this somewhere but I cannot figure out what or where.
Upvotes: 0
Views: 210
Reputation: 165108
Most likely you have told IDE to open it like that in the past (on purpose or by mistake) .. so it keeps doing it.
Settings/Preferences | Editor | File Types
Find Files Opened in Associated Application
entry in top list
Find and remove offending entry from bottom list (most likely will be index.html
or similar)
Upvotes: 4