You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the #region tag (the # character) is present withing the first 8 characters on a new line, the #region gives you a minus sign to collapse the region. But beyond 8 it does not. I'm using spaces instead of tabs for indent. I have not tested if the same problem exist when using tabs.
# This work
function Get-Something {
if (condition) {
#region My region test
Write-Information "Test #Region"
#endregion My region test
}
}
# This does not work
function Get-Something {
if (condition) {
#region My region test
Write-Information "Test #Region"
#endregion My region test
}
}
The text was updated successfully, but these errors were encountered:
Code folding is purely a VSCode feature at this point based upon indentation and nothing else. There is no support for language participation in code folding. See this VSCode issue
If the #region tag (the # character) is present withing the first 8 characters on a new line, the #region gives you a minus sign to collapse the region. But beyond 8 it does not. I'm using spaces instead of tabs for indent. I have not tested if the same problem exist when using tabs.
The text was updated successfully, but these errors were encountered: