What you need to do to save scripts depends on how you start the SQL Editor.
When you start the SQL Editor from the New SQL File wizard, or when you open a SQL script that is a project resource and then you modify the script, you can save by choosing . The editor also prompts you to save when you exit the editor after making changes to the file.
If you start the SQL Editor in any other way, you must choose before you exit the editor. You are prompted to name the file and to add it to an existing project. Then, you can save.