try selecting the file and right clicking it, click "open with" then choose a code editor (like visual studio code/vsm)