The property `$PSStyle.AutoSizeDefaultFormatting` is added to allow user to force the default implicit formatting to use `AutoSize` for Table and Wide views

Open
#13,289 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
powershell
Domain
documentation

Research direction

Start by reviewing related source pull request #28018 to understand the new $PSStyle.AutoSizeDefaultFormatting property and its interaction with OutputRendering. Update the PowerShell documentation to explain the property and its purpose, with the documented usage showing how it reduces formatted output verbosity.

Written by the indexing model from the issue text.

Description

issue-doc-idea needs-triage
Prerequisites
  • Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
  • Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Document new Get-Foo cmdlet" instead of "New cmdlet."
Summary

https://github.com/PowerShell/PowerShell/pull/28018 added a new property $PSStyle.AutoSizeDefaultFormatting to allow user to force the default implicit formatting to use AutoSize for Table and Wide views.

This is for reducing output verbosity when PowerShell is used by an agent. By setting the following 2 PSStyle properties, no color ANSI sequences will be written out and the tab formatting will take less spaces.

$PSStyle.AutoSizeDefaultFormatting = $true
$PSStyle.OutputRendering = 'PlainText'
Details

No response

Articles

No response

Related Source Pull Requests
Related Source Issues

No source issues. This is part of the effort to reduce token consumption by PowerShell when used as the shell invocation tool.

Dominant language
PowerShell
Stars
2.5k
Forks
1.7k
Avg merge
8h 45m
Merged PRs (30d)
33

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.

More from MicrosoftDocs/PowerShell-Docs

All issues in MicrosoftDocs/PowerShell-Docs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.