{"id":14557,"date":"2019-01-23T15:38:14","date_gmt":"2019-01-23T23:38:14","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/?p=14555"},"modified":"2019-02-18T12:37:38","modified_gmt":"2019-02-18T19:37:38","slug":"announcing-the-powershell-preview-extension-in-vscode","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/announcing-the-powershell-preview-extension-in-vscode\/","title":{"rendered":"Announcing the PowerShell Preview Extension in VSCode"},"content":{"rendered":"<div class=\"markdown-body\">\n<h2>\n<a id=\"user-content-preview-builds-of-the-powershell-extension-are-now-available-in-vscode\" class=\"anchor\" href=\"#preview-builds-of-the-powershell-extension-are-now-available-in-vscode\"><span class=\"octicon octicon-link\"><\/span><\/a>Preview builds of the PowerShell extension are now available in VSCode<\/h2>\n<p>We are excited to announce the PowerShell Preview extension in the VSCode marketplace!\nThe PowerShell Preview extension allows users on Windows PowerShell 5.1, Powershell 6.0, and all newer versions to get and test the latest updates to the PowerShell extension and comes with some exciting features. The PowerShell Preview extension is a substitute for the PowerShell extension so both the PowerShell extension and the PowerShell Preview \nextension should not be enabled at the same time.<\/p>\n<h2>\n<a id=\"user-content-features-of-the-powershell-preview-extension\" class=\"anchor\" href=\"#features-of-the-powershell-preview-extension\"><span class=\"octicon octicon-link\"><\/span><\/a>Features of the PowerShell Preview extension<\/h2>\n<p>The PowerShell Preview extension is built on .NET Standard thereby enabling simplification of our code and dependency structure.<\/p>\n<p>The PowerShell Preview extension also contains PSReadLine support in the integrated console for Windows behind a \nfeature flag. PSReadLine provides a consistent and rich interactive experience, including syntax coloring and\n multi-line editing and history, in the PowerShell console, in Cloud Shell, and now in VSCode terminal. \nFor more information on the benefits of PSReadLine, check out their <a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/psreadline\/about\/about_psreadline?\" rel=\"nofollow\">documentation<\/a>.<\/p>\n<p>To enable PSReadLine support in the Preview version on Windows, please add the following to your user settings:<\/p>\n<pre><code>\"powershell.developer.featureFlags\": [ \"PSReadLine\" ]\n<\/code><\/pre>\n<p>HUGE thanks to @SeeminglyScience for all his amazing work getting PSReadLine working in PowerShell Editor Services!<\/p>\n<h2>\n<a id=\"user-content-why-we-created-the-powershell-preview-extension\" class=\"anchor\" href=\"#why-we-created-the-powershell-preview-extension\"><span class=\"octicon octicon-link\"><\/span><\/a>Why we created the PowerShell Preview extension<\/h2>\n<p>By having a preview channel, which supports Windows Powershell 5.1 and PowerShell Core 6, in addition to our existing stable channel, we can get new features out faster. PSReadLine support for the VSCode integrated console is a great\nexample of a feature that the preview build makes possible. Having a preview channel also allows us to get more feedback\non new features and to iterate on changes before they arrive in our stable channel.<\/p>\n<h2>\n<a id=\"user-content-how-to-getuse-the-powershell-preview-extension\" class=\"anchor\" href=\"#how-to-getuse-the-powershell-preview-extension\"><span class=\"octicon octicon-link\"><\/span><\/a>How to Get\/Use the PowerShell Preview extension<\/h2>\n<p>If you dont already have VSCode, start <a href=\"https:\/\/code.visualstudio.com\/Docs\/setup\/setup-overview\" rel=\"nofollow\">here<\/a>.<\/p>\n<p>Once you have VSCode open, click <code>Clt+Shift+X<\/code> to open the extensions marketplace.\nNext, type <code>PowerShell Preview<\/code> in the search bar.\nClick <code>Install<\/code> on the <code>PowerShell Preview<\/code> page.\nFinally, click <code>Reload<\/code> in order to refresh VSCode.<\/p>\n<p>If you already have the PowerShell extension please disable it to use the Powershell Preview extension.\nTo disable the PowerShell extension find it in the Extensions sidebar view, specifically under the list of Enabled extensions, Right-click on the PowerShell extension and select <code>Disable<\/code>. Please note that it is important to only have either the\nPowerShell extension or the PowerShell Preview extension endabled at one time.\n<a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/2019\/01\/disable-extension.jpg\"><img decoding=\"async\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/2019\/01\/disable-extension-300x87.jpg\" alt=\"\" width=\"300\" height=\"87\" class=\"alignnone size-medium wp-image-14575\" \/><\/a><\/p>\n<h4>\n<a id=\"user-content-breaking-changes\" class=\"anchor\" href=\"#breaking-changes\"><span class=\"octicon octicon-link\"><\/span><\/a>Breaking Changes<\/h4>\n<p>As stated above, this version of the PowerShell extension only works with Windows PowerShell versions 5.1 and\n PowerShell Core 6.<\/p>\n<h2>\n<a id=\"user-content-reporting-feedback\" class=\"anchor\" href=\"#reporting-feedback\"><span class=\"octicon octicon-link\"><\/span><\/a>Reporting Feedback<\/h2>\n<p>An important benefit of a preview extension is getting feedback from users.\nTo report issues with the extension use our <a href=\"https:\/\/github.com\/PowerShell\/vscode-powershell\/issues\">GitHub repo<\/a>.\nWhen reporting issues be sure to specify the version of the extension you are using.<\/p>\n<p>Sydney Smith\nProgram Manager\nPowerShell Team<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Preview builds of the PowerShell extension are now available in VSCode We are excited to announce the PowerShell Preview extension in the VSCode marketplace! The PowerShell Preview extension allows users on Windows PowerShell 5.1, Powershell 6.0, and all newer versions to get and test the latest updates to the PowerShell extension and comes with some [&hellip;]<\/p>\n","protected":false},"author":1085,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-14557","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>Preview builds of the PowerShell extension are now available in VSCode We are excited to announce the PowerShell Preview extension in the VSCode marketplace! The PowerShell Preview extension allows users on Windows PowerShell 5.1, Powershell 6.0, and all newer versions to get and test the latest updates to the PowerShell extension and comes with some [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/14557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/1085"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=14557"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/14557\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=14557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=14557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=14557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}