- Open VS Code.
- Click on File.
- Then find Preferences -> settings.
- Click on the Text Editor in the left side menu.
- Then Click on Files.
- Locate the Readonly From Permissions Setting.
- Check or Uncheck: Marks files as read-only when their file permissions indicate as such. This can be overridden via Files: Readonly Include and Files: Readonly Exclude settings.