Skip to content

Instantly share code, notes, and snippets.

@kasuken
kasuken / VS 2019 and VS Code - Defender Exclusions.ps1
Last active February 12, 2024 03:30
This script adds path exclusions to Windows Defender for VS 2019 and Visual Studio Code processes and folders.
# Remember to run the script "as Administrator"
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($env:USERPROFILE + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add($env:USERPROFILE + '\.nuget\packages') > $null
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null
@TwitchBronBron
TwitchBronBron / usersettings.json
Created May 10, 2019 18:08
Example of how to customize specific textmate rutes
//https://stackoverflow.com/questions/46034188/add-an-operator-to-visual-studio-code-theme-in-settings-json
{
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "keyword.operator.word",
"settings": {
"foreground": "#569BD2"
}
}