-
Notifications
You must be signed in to change notification settings - Fork 382
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
Rename functions to their proper case on Format #1112
Comments
There have been similar requests, like e.g. #767 and in another issue that I cannot find right now. I have never considered it to be of importance and left open to the community as 'up for grabs'. Sometimes, I'd like that features as well myself. Technically it should be relatively easy by just calling |
While you're at it, maybe it would be possible to expand on aliases and do the replacement for Aliases as well? People tend to use % or things like that and it's a bit hard to understand for beginners (and probably slower?). Having expanded FT to Format-Table would be cool. What would be totally cool (and probably performance improving) would be expanding parameter names or even giving ones. For example:
But I guess that's much harder to fix ;-) |
PSSA can already fix cmdlet aliases since v 1.17.1 using the -Fix switch and VS-Code has it as well. I'd have to check but I think parameter names are not included though. |
I don't see that as an option in VSCode. Where can I find it? |
I see, I was thinking it would be added as a Formatter. so when you format it replaces everything automatically. I had to disable this feature you describe due to problems PowerShell/vscode-powershell#1593 and I believe one is related to other, right? |
That's great! Take your time! I'm fine with it being disabled by default as long as we get this in settings. Actually, I wanted to ask why PSScriptAnalyzer Rules are not part of settings but you need to access them in a special way? Can't this be integrated? It's not really "easy" to find and I actually found it by accident. I don't even know where's saving things. On a separate note, If you can "convert" all those avoid into formatter (where it makes sense) and give an option to the user for a replacement that would be a really cool feature. I can open Issue if you want to track it separately or maybe it's needed somewhere else? I often use As for performance that's surely needed. I believe I've been hitting both perf issues and the issue I've mentioned above a lot. |
PSScriptAnalyzer settings can be configured using e.g. As I said, you can already use the new |
Summary of the new feature
I sometimes type functions like
get-childitem
. I sometimes copy it from Internet like that. I like my code to be nice looking. Would it be possible to rename functions to their proper case variant on Format? For exampleGet-ChildItem
.Proposed technical implementation details (optional)
A clear and concise description of what you want to happen.
The text was updated successfully, but these errors were encountered: