[Solved] IF statement formatting

4 Posts
2 Users
0 Reactions
624 Views
Posts: 3
Topic starter
(@zdenek)
Member
Joined: 2 years ago
[#121]

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


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

Hi @zdenek,

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

Will keep you informed

REgards

Guido


Reply
1 Reply
Guido
Admin
(@admin)
Joined: 5 years ago

Member
Posts: 295

hi @zdenek,

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

grafik

Hope this helps

Guido


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

Thanks. 👍 


Reply
Share: