Skip to content

Add .vscode and .idea to Unity.gitignore - #4903

Open
abirpahlwan wants to merge 1 commit into
github:mainfrom
abirpahlwan:patch-vscode-rider
Open

Add .vscode and .idea to Unity.gitignore#4903
abirpahlwan wants to merge 1 commit into
github:mainfrom
abirpahlwan:patch-vscode-rider

Conversation

@abirpahlwan

Copy link
Copy Markdown

Link to the application or project's homepage

https://unity.com/

Reasons for making this change

Unity developers commonly use Visual Studio Code and JetBrains Rider (which uses the .idea folder format) as external script editors alongside the Unity Editor. Currently, Unity.gitignore does not exclude the local settings folders these editors generate (.vscode/ and .idea/), which causes editor-specific configuration files to be accidentally committed to Unity project repositories.

Links to documentation supporting these rule changes

  • VS Code workspace settings folder: https://code.visualstudio.com/docs/getstarted/settings (stores per-project settings in .vscode/)
  • JetBrains Rider project files: https://www.jetbrains.com/help/rider/Project_Files.html (stores per-project settings in .idea/)
  • These same entries already exist in the global VisualStudioCode.gitignore and JetBrains.gitignore files in this repo. This PR adds them specifically to Unity.gitignore since Rider/VSCode + Unity is an extremely common combination, and many contributors don't chain the global gitignore templates together.

Merge and Approval Steps

  • I have read the contribution guidelines and understand my PR will be closed if it doesn't meet these guidelines

@abirpahlwan
abirpahlwan requested a review from a team as a code owner August 30, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant