• Nakul Vachhrajani (3/18/2012)


    I always insist that my team has the "replace tabs with spaces" switch in SSMS options checked and also run code through the "beautifer" option of "Untabify selection".

    In my humble opinion, there should be a consistent set of coding aesthetic standards that should be enforced by default (and result in warnings) by Visual Studio and associated tools.

    THANK YOU!

    I have been looking for that setting forever. I thought SSMS lacked it. Then I went looking again because of your post.

    For anyone else who couldn't find it, it's Tools / Options / Text Editor / Transact-SQL / Tabs

    Then set your tab and indent size, and choose "Insert spaces". Me, I use tabs set to 3 spaces...