Title: Format indention of multiline statements · Issue #1315 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: Format indention of multiline statements · Issue #1315 · PowerShell/PSScriptAnalyzer
X Title: Format indention of multiline statements · Issue #1315 · PowerShell/PSScriptAnalyzer
Description: Summary of the new feature Enhance formatting of continued (multiline) statements (command and expression), combining the PipeLineIndentionStyle with statement continuation. There are a lot of means to continue command statements, includ...
Open Graph Description: Summary of the new feature Enhance formatting of continued (multiline) statements (command and expression), combining the PipeLineIndentionStyle with statement continuation. There are a lot of mean...
X Description: Summary of the new feature Enhance formatting of continued (multiline) statements (command and expression), combining the PipeLineIndentionStyle with statement continuation. There are a lot of mean...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/1315
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Format indention of multiline statements","articleBody":"**Summary of the new feature**\r\n\r\nEnhance formatting of continued (multiline) statements (command and expression), combining the PipeLineIndentionStyle with statement continuation.\r\n\r\nThere are a lot of means to continue command statements, including pipe lines. especially so with expressions. I, myself, prefer all continued statements to be indented, but currently the formatting only supports indenting when a brace or parenthesis is involved, or optionally with a pipe line.\r\n\r\n**Proposed technical implementation details (optional)**\r\n\r\nI actually think the details of pipe line continuation gets simpler when the entire statement's continuation is taken in to account.\r\n\r\nI am not fully understanding of how the formatting mechanism works, so this is a fundamental concept to how I would think it would work.\r\n\r\nIf using PowerShell AST's, for each PipeLineAst/CommandExpressionAst/etc, add 1 indention level to subsequent lines, in addition to all other indenting even for the same PipeLineAst.\r\n\r\nThere might be a need to restrict the continuation indention of a PipeLine or CommandExpression if they are the sole contents of a ParenExpression, because in that case, the PipeLine or CommandExpression is fully captured in the indention of the ParenExpression, as technically only one expression should appear in such cases, unlike a scriptblock or statementblock where multiple statements or expressions could appear.\r\n\r\nI need to gather some examples to better demonstrate my use case.","author":{"url":"https://github.com/msftrncs","@type":"Person","name":"msftrncs"},"datePublished":"2019-08-21T04:11:38Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/1315"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f3a8fcde-3327-b0e7-0f0a-eae322939a94 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9848:2E24C3:14B0455:1D29347:6AFCE49E |
| html-safe-nonce | 2a542c1f1e0eeb7f7afee0a4cdb7c107ece7d49170de06dd90c8bd908377f8d2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODQ4OjJFMjRDMzoxNEIwNDU1OjFEMjkzNDc6NkFGQ0U0OUUiLCJ2aXNpdG9yX2lkIjoiMjg5MTY2OTM5NDc2NzUzNzMxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a511306ca871e8228e2b9039ea59e1f6214b605345bec8a2ca9a68ef2ed09d91 |
| hovercard-subject-tag | issue:483189190 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PSScriptAnalyzer/1315/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eed5fc44d57f0ba5d2452edd48ab034eec7fd0ad4de778784fe412a3411be1ce/PowerShell/PSScriptAnalyzer/issues/1315 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eed5fc44d57f0ba5d2452edd48ab034eec7fd0ad4de778784fe412a3411be1ce/PowerShell/PSScriptAnalyzer/issues/1315 |
| og:image:alt | Summary of the new feature Enhance formatting of continued (multiline) statements (command and expression), combining the PipeLineIndentionStyle with statement continuation. There are a lot of mean... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msftrncs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 99aede4c5f55ec5cf06666a8c9e03ebf9f85f7231223e7f1c38c16e5504835b3 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 33149177 |
| octolytics-dimension-repository_nwo | PowerShell/PSScriptAnalyzer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33149177 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PSScriptAnalyzer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ecfd63ca125ec74b42f74eeb158b3fa081c8c497 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width