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

9 Posts
3 Users
0 Reactions
4,514 Views
Posts: 2
Topic starter
(@nicholasd)
Member
Joined: 2 years ago
[#131]

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

8 Replies
Guido
Posts: 295
Admin
(@admin)
Member
Joined: 5 years ago

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

Thanks

Guido


Reply
Posts: 2
Topic starter
(@nicholasd)
Member
Joined: 2 years ago

@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'

)


Reply
Guido
Posts: 295
Admin
(@admin)
Member
Joined: 5 years ago

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

Reply
Guido
Posts: 295
Admin
(@admin)
Member
Joined: 5 years ago

Hi @nicholasd,

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

grafik

Regards

Guido


Reply
Page 1 / 2
Share: