- SQL Prompt version: 10.14.4.4865
- SQL Server Management Studio version: 19.2.56.2
- SQL Server Version:
- Microsoft SQL Azure (RTM) - 12.0.2000.8
- Microsoft SQL Server 2022 (RTM-GDR) (KB5029379) - 16.0.1105.1 (X64)
- Database Compatibility Level: 160
- Active Style: Default
Before formatting
DECLARE @i INT = 1;
IF @i = 1
SET @i = 2;
WHILE @i = 2
SET @i = 3;
- This is the expected result
After formatting
DECLARE @i INT = 1;
IF @i = 1
SET @i = 2;
WHILE @i = 2
SET @i = 3;
- Indentation is missing after WHILE
Before formatting
After formatting