Align column aliases?

Provides intelligent code completion for SQL Server editors.

Moderators: David Atkinson, Anu Deshpande, Luke Jefferson

Align column aliases?

Postby jrummell » Tue Oct 12, 2010 7:14 pm

I was wondering if SQL Prompt Pro can right align column aliases? Here's an example:

Before:
Code: Select all
SELECT
    column1 AS Column1,
    column2 AS Column2,
    aReallyLongColumnName AS Column3
FROM
    someTable


After:
Code: Select all
SELECT
    column1                         AS Column1,
    column2                         AS Column2,
    aReallyLongColumnName AS Column3
FROM
    someTable


The code font isn't monospaced so it may not display correctly. But the the idea is that \"AS Columnx\" would appear in the same column for each line.
jrummell
 
Posts: 4
Joined: Wed Nov 15, 2006 3:08 pm

Postby Chris Auckland » Wed Oct 13, 2010 8:13 pm

Thanks for your post.

I'm afraid this isn't possible. There isn't a way to add any custom layout configurations, so if the option isn't there, then SQL Prompt 4 can't do it.

If you would like this layout option to be considered for a future version, I can add a feature request.
Chris
Chris Auckland
 
Posts: 757
Joined: Tue Oct 24, 2006 2:12 pm
Location: Red Gate Software Ltd.

Postby jrummell » Wed Oct 13, 2010 8:17 pm

Yes, please add a feature request. Thanks!
jrummell
 
Posts: 4
Joined: Wed Nov 15, 2006 3:08 pm

Postby Chris Auckland » Fri Oct 15, 2010 4:57 pm

I've submitted a feature request SP-3536 for you.
Chris
Chris Auckland
 
Posts: 757
Joined: Tue Oct 24, 2006 2:12 pm
Location: Red Gate Software Ltd.


Return to SQL Prompt Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests