To achieve this task you can go in SSMS to File -> New -> Project..
A dialog window will pop up asking you about type of a project, its name and location. Select "SQL Server Scripts" type there, choose location and name and press OK. At the right side of the SSMS toolbar with solution files opens. There are created solution, nested project and three folders: Connections, Scripts, Miscellaneous. Right Clicking on the folder you can create new items in it. In Connections folder SSMS will store yser credentials with which it will execute queries. In Queries folder -- your scripts.
That's it. Just try it yourself.
And of course you can open queries stored in solution in different query windows.
Hope that it helps.
Write if you need more help.