I downloaded Visual Studio Code thinking it would be nice to write T-SQL scripts and have the pretty auto-formatting happen as write.
I've already installed the mssql extension.
When creating a new file, the file is a simple plaintext with no extension 'Untitled-1'.
How in the world do I tell VS Code this is a SQL script so it formats correctly?
If I hit Shift + ALT + F, I simply receive the error "There is no formatter for 'plaintext' installed."
If I save the file with the extension '.sql', the format is applied.
However, I don't want to have to save the file... I want it to just be a scratchpad.
Is there any way in VS Code to tell the editor the file should be formatted SQL other than saving the file as an SQL file?