Search code examples
visual-studionugetnuget-packagepackage-managers

How to adjust or format the column width in output of Package Manager Console


I ran below command in Package Manager Console in Visual Studio:

Find-Package analysisservices

This command gives below output:

enter image description here

For several packages whose name is relatively longer than the width of the Id column it shows three dots ... in the end. It doesn't show any tool-tip when I hover mouse over the long names having three dots ....

Is there any way to adjust the width of the displayed columns so that long names don't get truncated?

Update: One thing which is still not solved. Is there any other additional parameter to the command Get-Package | ft -AutoSize which I can use so that all three output columns get expanded in table view itself. I don't mind if that results in a horizontal scroll bar.


Solution

  • Try formatting the output stream like this

    Find-Package analysisservices | ft -AutoSize
    

    More information about formatting in Powershell