# --- 通用忽略规则 ---
*.class
*.log
*.pyc
*.swp
*.DS_Store
Thumbs.db
._*

# --- 编译输出目录 ---
# C/C++
*.o
*.out
*.so
*.a
*.dll
*.exe
build/
obj/
Bin/

# Java
target/
*.jar
*.war
*.ear
*.nar

# Python
__pycache__/
*.pyc
*.pyo
*.pyd
pycache/

# JavaScript/Node.js
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
dist/
build/

# Go
bin/
pkg/
*.exe
*.test

# Rust
/target/
**/*.rs.bk

# .NET
bin/
obj/
*.suo
*.user
*.cache

# PHP
vendor/
composer.lock

# Ruby
/.bundle/
/vendor/bundle
*.gem

# Swift
.build/
*.xcworkspace
!default.xcworkspace

# Android
gen/
bin/
*.apk
*.ap_

# iOS
build/
*.ipa
*.xcuserstate

# Haskell
*.hi
*.o
dist/
dist-newstyle/
.cabal-sandbox/
cabal.sandbox.config

# Scala
target/
*.class

# Kotlin
*.class
/build/

# TypeScript
dist/
*.js.map
*.tsbuildinfo

# --- IDE 相关 ---
# Visual Studio Code
.vscode/
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# IntelliJ
.idea/
*.iml
*.iws

# Eclipse
.settings/
.classpath
.project

# --- 操作系统生成文件 ---
# Windows
[Dd]esktop.ini
$RECYCLE.BIN/

# Linux/Unix
*~
.fuse_hidden*

# macOS
.DS_Store?
._*
.Spotlight-V100
.Trashes._logger_
