For the complete documentation index, see llms.txt. This page is also available as Markdown.

Windows Defender Exclusion

The editor creates and scans many project files. On some systems, Microsoft Defender real-time scanning can make those operations noticeably slower. Measure the problem before adding an exclusion; most projects do not need one.

1

1) Open Windows Security

Open Windows Security from the Start menu (or search for it).

Windows Security in the Start menu

Windows Security app.

2

2) Go to Virus & threat protection

From the left sidebar, select Virus & threat protection.

Virus and threat protection entry in Windows Security

Virus & threat protection entry.

3

3) Open Virus & threat protection settings

Scroll to Virus & threat protection settings, then click Manage settings.

Manage settings under Virus and threat protection settings

Manage settings button.

4

4) Open exclusions

Scroll to Exclusions, then click Add or remove exclusions.

Add or remove exclusions control

Add or remove exclusions.

5

5) Add a new exclusion

Click Add an exclusion.

Add an exclusion menu

Add an exclusion dropdown.

6

6) Choose “Folder”

Select Folder.

Folder option in the Add an exclusion menu

Choose a folder exclusion only after measuring a scanning-related slowdown.

7

7) Pick the narrowest affected folder

Select one trusted project's folder, or only the generated subfolder identified by your performance investigation. Do not select the parent directory that contains every project.

Folder picker for a narrow project exclusion

Confirm the folder selection.

Removing the exclusion

Return to Windows Security → Virus & threat protection → Manage settings → Add or remove exclusions. Select the exclusion and choose Remove. Remove it after troubleshooting, when the project is no longer active, or before placing third-party files in that path.

For managed devices and current Windows-specific details, see Microsoft's Defender Antivirus exclusion guidance.

Last updated