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.
![](https://secure.gravatar.com/avatar/22bd3ed6055ad826a702a658cd51cc6f?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
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.