I am trying to name a HTML file as
Refactor > Rename
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
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)