I checked the documentation for code collapsing, many languages have a marker defined but SQL doesn't.
SQL Server Management Studio recognizes begin and end as a region, allowing for folding, but VS Code doesn't.
Any suggestions are very appreciated.
For anyone coming here for the answer.
Region markers for SQL have been added to VS CODE in 2019 and you can now use them as:
--#region [name region if you like]
part of code you want to fold/collapse
--#endregion
Then use Ctrl + Shift + P or View -> Command Palette... and choose Fold All Regions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With