# Non-Project Files Protection dialog

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/2026.3/llms.txt).

This dialog appears when you try to edit non-project files:  SDK sources, external sources and so on. Such files are intentionally protected from modification. For example, it is not recommended that you change Go SDK packages as you are supposed to reuse them as is.

If you want to work with these files, add them to the  content root. A content root in GoLand is a folder that contains your source code, build scripts, unit tests, and documentation. In the Project tool window, this folder is marked with the ![Directory](https://resources.jetbrains.com/help/img/idea/2026.3/app.nodes.folder.svg) icon.

If you want to edit these files only once without adding them to your project, use one of the options in the dialog.

![Non-Project Files Protection dialog](https://resources.jetbrains.com/help/img/idea/2026.3/go_non_project_files_access.png)

* This file: select this option to disable protection for the file or files.

* All files in this directory: select this option to disable protection for the listed files and all files in the same directory.

* Any non-project file: select this option to disable protection.

## Edit non-project files in the vendor directory

If you need to edit files in the `vendor` directory, consider adding this directory as a content root to your project. Read more about content roots in [the Content root article](content-root.html).

Procedure: Add the package folder to the content root from editor

1. Start editing a non-project file.

2. In the Non-Project Files Protection dialog, select [the scope](#non_project_files_scopes) that you want to edit.

3. In the notification window, click the Add <package> to the project.

![Edit non-project files in the vendor](https://resources.jetbrains.com/help/img/idea/2026.3/go_edit_non_project_files_in_the_vendor.animated.gif)

Procedure: Add the package folder to the content root from settings

1. Open settings by pressing `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) and navigate to `Project Structure`. .

2. Click the Add Content Root button and navigate to the folder that you want to add to the project structure as a content root.

![Add Content Root](https://resources.jetbrains.com/help/img/idea/2026.3/go_add_content_root.png)

## See also

### Getting Started

[Navigate with the caret](navigating-through-the-source-code.html#find_cursor_edit)

