Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm tired of using Tab key when I pressed Enter and Tab Key in SSMS editor because when I have something like this:

CREATE PROCEDURE SP_Example
BEGIN
        SET NOCOUNT ON

        SET DATEFORMAT MDY

If the caret is after the SET NOCOUNT ON sentence and then I press Enter, the caret position goes to the beginning of the next line instead of doing two Tabs.

How can I fix it?

share|improve this question
up vote 1 down vote accepted

Make sure you have Block indenting turned on for T-SQL files:

  • In the Tools menu select Options.
  • In the options window expand the "Text Editor" node and the "Transact-SQL" node to select the "Tabs" node.
  • Ensure Indenting is set to "Block"
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .