A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/archive/blogs/cdndevs/visual-studio-code-powershell-extension below:

Visual Studio Code: PowerShell Extension

In the next two posts I am going to take some time to discuss the existing Visual Studio Code extensions in details. In this one we will discuss PowerShell Extension and in the next one – integration with Chrome Debugging service. 

PowerShell extension is a very good example of how to use powerful Code editor not just for Web development but for many different tasks including IT Professional stuff. In order to install PowerShell extension, you can use Command Palette window and execute Install Extension command there:

 

Right after that, Code will download a list of all extensions’ names and you can start typing PowerShell in order to make the list shorter and select the right one:

 

Once you install PowerShell extension, Visual Studio will propose to be restarted and right after the restart you can start working with PowerShell.

Of course, PowerShell is a platform for Windows but if you decide to develop some scripts on Mac you can use this PowerShell extension on Mac as well. You will not have access to some features there such as debugging but you can use at least the following things:

 

Of course, in case of Windows, PowerShell is native and you have access to much more features in Code.  Thanks to open-source projects like PowerShell Editor Services and PowerShell Scrip Analyzer, extension’s developers got a chance to implement debugging features and code analyzer features. Here is the list of additional features that successfully work on Windows platform:

 

 

 {
 "version": "0.2.0",
 "configurations": [
 {
 "name": "PowerShell",
 "type": "PowerShell",
 "program": "DebugTest.ps1"
 }
 ]
}
 

Once you provide a file name with your cmdlets you can run debugger:

 

Therefore, you can easily use Code as a PowerShell editor with lots of features on Windows and even some features on Mac and Linux platform.

Finally, if you want to contribute or get access to code bits you can visit GitHub site.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4