Ketcomp
Ketcomp

Reputation: 454

How to prevent WebStorm IDE from opening '.html' files in a web browser on double-clicking it?

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

Answers (1)

LazyOne
LazyOne

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.

  1. Settings/Preferences | Editor | File Types

  2. Find Files Opened in Associated Application entry in top list

  3. Find and remove offending entry from bottom list (most likely will be index.html or similar)

Upvotes: 4

Related Questions