Back to Rust Analyzer

Settings Example

editors/code/walkthrough-setup-tips.md

2026-05-04276 B
Original Source

Settings Example

Add the following to settings.json to mark Rust library sources as read-only:

json
"files.readonlyInclude": {
  "**/.cargo/registry/src/**/*.rs": true,
  "**/.cargo/git/checkouts/**/*.rs": true,
  "**/lib/rustlib/src/rust/library/**/*.rs": true,
},