Indent comments consistent with code
I'm finding my comments are hanging out all on their own after the rest of my code is formatted. I would request a feature to allow comments to indent to the same level as the code on the line below.
This feature is now included in the new SQL Prompt 8.0. For additional information see: http://documentation.red-gate.com/display/SP8/SQL+Prompt+8.0+release+notes
You can get the latest version of SQL Prompt from http://www.red-gate.com/products/sql-development/sql-prompt/
Thank you for your help!
-
Anonymous commented
That doesn't work:
Before:
IF 1 = 1 BEGIN
SELECT 1 AS one
-- I guess 1 = 1
endAfter:
IF 1 = 1
BEGIN
SELECT 1 AS one;
-- I guess 1 = 1
END;The commend is de-dented
-
Anonymous commented
Yes!!
an option to leave comments untouched would be handy!
Michael
-
jreynolds commented
THIS. Just spent another 10 minutes re-formatting comments after moving code from a query to a stored proc which has a begin/end statement, etc. etc. What a mess.
-
Jana commented
Or the option to leave the comments where they are. When I have a comment at the end of a line, I'd like the option of leaving it alone instead of moving it to a different line.
-
Piotr L commented
... or the line above. An option for this would be handy. 3 votes from me.