[Solved] IF statement formatting

4 Posts
2 Users
0 Reactions
105 Views
(@zdenek)
Member
Joined: 4 months ago
Posts: 3
Topic starter  

Hi, I am using Azure Data Studio plugin for SQL Server scripts (T-SQL).
Is there any possibility to keep an expression after IF in the same line ?
Current formatting:

if
my_function (@my_var) = 0
  begin
    return null
  end
I'd like to have:

if my_function (@my_var) = 0
  begin
    return null
  end


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

Hi @zdenek,

thanks for your feedback. I will add this option today or tomorrow .

Will keep you informed

REgards

Guido


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

hi @zdenek,

please install Release 2.0.80. there you will find new Options (see screenshot)

grafik

Hope this helps

Guido


   
ReplyQuote
(@zdenek)
Member
Joined: 4 months ago
Posts: 3
Topic starter  

Thanks. 👍 


   
ReplyQuote
Share: