SQL Formatting Question
S_in_AZ
Posts: 3 New member
Formatting issues with comments /* */, and I can't figure out if it is something in my formatting style that is causing this, or maybe if it's just not addressed. Here is what my code looks like after it is formatted, and below it is how I would like it to look. I'm trying to have the /* comment beginning line up with ending comment line. Thank you.
After Formatting:
/********************************************************************************************************
DML
********************************************************************************************************/
/****************************************************************************************************
Set the Try/Catch error variables here
****************************************************************************************************/
SET @ErrorNumber = 0
SET @SERVERNAME
/****************************************************************************************************
prevent
****************************************************************************************************/
SET DATEFIRST 7;
/****************************************************************************************************
Determine the Cutoff
****************************************************************************************************/
How I would like it to look:
/********************************************************************************************************
DML
********************************************************************************************************/
/****************************************************************************************************
Set the Try/Catch error variables here
****************************************************************************************************/
SET @ErrorNumber = 0
SET @SERVERNAME
/****************************************************************************************************
prevent
****************************************************************************************************/
SET DATEFIRST 7;
/****************************************************************************************************
Determine the Cutoff
****************************************************************************************************/
Tagged:
Answers
Could you attach your format style so I can take a look for you?
Thanks
Tianjiao Li | Redgate Software
Have you visited our Help Center?
Apologies for missing your format file from the original post!
I couldn't get the code formated as requested either so I escalated it to the development for advice.
I'll be sure to keep you posted.
Tianjiao Li | Redgate Software
Have you visited our Help Center?
Thanks for your patience.
The development team confirmed this is not possible in SQL Prompt at the moment, unfortunately. Could you leave your suggestion on our user voice forum? https://redgate.uservoice.com/forums/94413-sql-prompt
Thanks!
Tianjiao Li | Redgate Software
Have you visited our Help Center?
Thanks in advance.