On Windows platforms you can make Interactive SQL the default editor for .sql command files.
From Interactive SQL, choose Tools » Options.
In the left pane, click General.
Click Make Interactive SQL The Default Editor For .SQL Files And Plan Files.
Click OK.
For more information about using Interactive SQL with command files, see: