VMware Cloud Community
vespavbb
Enthusiast
Enthusiast

VSCODE missing Property in Powershell

Hi,

in Visual Studio Code I have the powershell plugin installed and I want to use it like in ISE.

So good so far, but in the Terminal I miss the option to expand the Property of an Object

an example for an VM in a variable $vm,

I miss the property box like here in powershell ISE

pastedImage_0.png

How can I enable this view in visual studio code (vscode)?

VCP4,VCP5,VCP6,VCP7,VCP8
0 Kudos
4 Replies
LucD
Leadership
Leadership

Not sure what exactly you mean, but when I type a dot, I see all the properties and methods in a listbox in an editor window.
This will probably not be the case in the Terminal screen (depending how and which session you run in there).

list.jpg


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
sjesse
Leadership
Leadership

Usually when I see that there is some error somwhere else. Generally if I try and run the current script, then try again it works.

0 Kudos
vespavbb
Enthusiast
Enthusiast

yes Luc,

in the script field in the top it is working but in the terminial windows below not,

pastedImage_0.png

VCP4,VCP5,VCP6,VCP7,VCP8
0 Kudos
LucD
Leadership
Leadership

In the ISE the Terminal window is driven by the Windows PowerShell ISE Host.
That feature is builtin into that Host, but not in the ConsoleHost nor in the Visual Studio Code Host afaik.

You can always raise an Issue in the PowerShell Language Support for Visual Studio Code repo.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos