Home > front end >  Why did my code turn into another language..?
Why did my code turn into another language..?

Time:12-23

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:

enter image description here

And this is how the code editor looks:

enter image description here

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: enter image description here
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

  • Related