Skip to content

Instantly share code, notes, and snippets.

@VahidN
VahidN / RoslynatorVSCode.ps1
Last active August 13, 2019 07:10
How to activate Roslynator for Visual Studio Code
Write-Host "Download, unzip and enable Roslynator for Visual Studio Code"
$name = "josefpihrt.Roslynator2017"
$url = "https://marketplace.visualstudio.com/items?itemName=$name"
$currentDir = $PSScriptRoot
$file = "$currentDir\Roslynator.zip"
$pattern = "<script class=`"jiContent`" defer=`"defer`" type=`"application\/json`">(.*?)<\/script>"
$regex = [regex]"(?m)$pattern"
Write-Host "Grab the home page of the $name."