PowerShell / PowerShell/vscode-powershell

Autoformat cmdlet (and parameters) capitalization

Open
#1,584 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Code Formatting Issue-Enhancement
Dominant language
TypeScript
Stars
1.9k
Forks
547
PR merge metrics
No merged PRs in 30d

Description

Summary of the new feature

Document formatter should be able to convert default cmdlets (and it's parameters) case, when some setting is set. (powershell.codeFormatting.keepcmdletcapitalization)

Before formatting:

get-content "somefile.json" -raw | convertfrom-json

After formatting:

Get-Content "somefile.json" -Raw | ConvertFrom-Json

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No implementation files or tests are named. Start by locating the document formatter and the powershell.codeFormatting.keepcmdletcapitalization setting, then trace how cmdlet and parameter casing is handled. Done means the setting produces the shown capitalization for the PowerShell example.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.