Skip to content
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

Add .vscode PowerShell code formatting settings #535

Closed
Badgerati opened this issue Feb 4, 2024 · 0 comments · Fixed by #536
Closed

Add .vscode PowerShell code formatting settings #535

Badgerati opened this issue Feb 4, 2024 · 0 comments · Fixed by #536

Comments

@Badgerati
Copy link
Owner

Describe the Change

The same settings as Badgerati/Pode#1169 should be used.

To help enforce the code formatting for Pode, specifically just the PowerShell scripts, a workspace settings for PowerShell code formatting should be created under a root .vscode folder.

  • This should mostly follow the style guide where possible, and the style guide updated where the settings can't match - such as bracers on new lines for functions and same line for statements, this had to all be on the same line.
  • The formatting should trigger on saving only, not while typing.
  • All main src PowerShell files should be re-formatted - this just overs files in /src, nothing else. Others will just happen over time.
  • The settings should be committed for others to utilise.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant