How can we help you today? How can we help you today?

Style Not Formatting Correctly

I created a style and it was working fine.  Then all of a sudden some things stopped working. For instance I set the Join to look like this below. It looks fine in the preview mode when creating the style.

SELECT *
FROM dbo.TempTable
    INNER JOIN dbo.TempTable2 ON TempTable2.id = TempTable.id;

However, when I actually apply the style it moves the ON to another line. I don't have the box checked to do this and the line is not long enough where it should wrap.  Any ideas would be appreciated.

SELECT *

FROM dbo.TempTable

    INNER JOIN dbo.TempTable2

        ON TempTable2.id = TempTable.id;

BR23
0

Comments

3 comments

  • DanC
    Hi @BR23

    That's very odd behaviour, I just copied the default style and turned off "Place ON keyword on a new line" also and it works for me. Could you potentially try copying the default style and apply the settings you've done before and check if that helps?
    DanC
    0
  • BR23
    Thanks for your reply.  A reboot of my PC seemed to have fixed it.
    BR23
    0
  • DanC
    Glad that sorted the issue for you!
    DanC
    0

Add comment

Please sign in to leave a comment.