Scripting can be carried out from either the Workspace or from an Object View.
From the Workspace select the object you wish to script. Right click and select the type of output you require from the Script menu.
From an Object View select the object you wish to script. Right click and select the type of output you require from the Script menu.
The generated script will appear in a query window just like any other query.
N.B. SQL Visualizer will open scripts based on the same object in the same query window. This is to ensure that multiple copies of a script originating from the same object are not generated and so avoiding potential problems of having different versions of the same script each with different changes pending. If you wish to create another working copy of the script just select it and use the Copy To New Window context menu command.
The list of available script output types will depend on the installed templates. SQL Visualizer comes with a default set of templates to allow you to script the major object types. However, SQL Visualizer also allows you to create your own templates so that your scripts appear the way you want them to (see creating scripting templates for more details).