Using SQL Editor
SQL Editor window provides broad range of editing capabilities. There are three main panes: Multi-tabbed Script Editor, Object browser and Results. Look and feel can be configured in Options Dialog on Editor page. You can drag and drop text between different panes.
To execute portion of script just select it and press Execute toolbar button or F5 keyboard key.
SQL Editor key shortcuts