Query Editor allows you to indent large sections of code with a single step, and you can change the amount of the indentation.
On the toolbar, click New Query.
Create a second query that selects the ContactID, MiddleName, and Phone columns from the Contact table of the Person database. Place each column on a separate line so the code looks like this:
-- Search for a contact SELECT ContactID, FirstName, MiddleName, LastName, Phone FROM Person.Contact WHERE LastName = 'Sanchez'; GO
Select all text from
On the SQL Editor toolbar, click Increase Indent to indent all the lines at once.