[Solved] + 0 Option on SQL>SQL Lists > # Vals on Line 1

5 Posts
2 Users
0 Reactions
52 Views
(@nicholasd)
Member
Joined: 1 month ago
Posts: 2
Topic starter  

Would love an option to have 0 values on the first line SQL>SQL Lists > # Vals on Line 1 (effectively forcing a newline). This along with some other formatting options before/after will make custom formatting more extensible for keywords that are not actively supported right now.

image

   
Quote
Guido
(@admin)
Member Admin
Joined: 3 years ago
Posts: 216
 

Hi @nicholasd, thanks for your feedback. Which DB are you working with and could you please one example

Thanks

Guido


   
ReplyQuote
(@nicholasd)
Member
Joined: 1 month ago
Posts: 2
Topic starter  

@Guido

I am working with Snowflake in Dbeaver. A simple example is below:

--------------------

-- CURRENT FORMAT --

--------------------

SELECT
-- Number of Values line 1 = 2

-- Number of Values line 2 = 2

CONCAT( 'String1', ', '

, 'STRING2', ', '

, 'STRING3', ', '

, 'STRING4'

)

 

----------------------

-- PREFERRED FORMAT --

----------------------
-- Number of Values line 1 = 0

-- Number of Values line 2 = 2

SELECT

CONCAT(

'String1', ', '

, 'STRING2', ', '

, 'STRING3', ', '

, 'STRING4'

)


   
ReplyQuote
Guido
(@admin)
Member Admin
Joined: 3 years ago
Posts: 216
 

OK, I will add an option for linebreaks before/after the bracket and to indent the values like in the screenshot for keyword1, keyword2 and keyword3

grafik

   
ReplyQuote
Guido
(@admin)
Member Admin
Joined: 3 years ago
Posts: 216
 

Hi @nicholasd,

it took some time but now your idea is available for N++ Plugin and Stand-Alone App

grafik

Regards

Guido


   
ReplyQuote
Share: