-
Notifications
You must be signed in to change notification settings - Fork 512
Make formatter capitalize cmdlets and parameters #960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here is a similar issue: PowerShell/PSScriptAnalyzer#767 |
+1 on this |
As Powershell isn't a case sensitive language, it would be good to provide the case formatting options for the developers preference. Something along the lines of: //Changes the case for powershell reserved words (if, else, elseif, function, switch, param etc...) to either UPPER, lower or First (capitalises the first letter) //Changes the case for powershell variables declared in the global or script scope to either UPPER, lower or FirstUpper (PascalCase) or firstLower (camelCase) //Changes the case for powershell variables declared in the local or private scope (within functions) to either UPPER, lower or FirstUpper (PascalCase) or firstLower (camelCase) //Autocorrects the case for recognised cmdlets and functions //Autocorrects the case for recognised parameters of cmdlets and functions |
This is actually an issue to be solved in PSScriptAnalyzer. I'm going to close this favor of this: |
Please make it possible to capitalize cmdlets and parameters by pressing tab like ISE.
In ISE, when cursor is placed in the middle of the line "write-host" and you press tab, it becomes "Write-Host". Same goes for parameters - "-erroraction" becomes "-ErrorAction"
Maybe the "Format Document" command could do the same?
The text was updated successfully, but these errors were encountered: