Basically, I touched something in visual studio code that made my .js script turn into a SQL script but the script name is main.js and not main.sql
This is how the file looks:
And this is how the code editor looks:
Also, there is a file name data with a SQL file in it that file is normal I was just practicing SQL was also trying to see if i can store data with SQL for a discord bot
CodePudding user response:
There are multiple ways to fix this:
Firstly you can change the language mode by clicking on the bottom where it says the language mode:
You will then be prompted to change your language mode
You can also do this in the command pallete
Press ctrl shift p
(by default) and the command prompt will pop up, type change language mode
and the option will then appear.
You can also press ctrl m
and then k
by default, where you have the ability to change the language mode there