- Adds new UIMode
- Published to Open VSX
- Adds Folder Level commands support
- Adds Workspace Trust support
Read-only Indicator is an open source extension created for Visual Studio Code. While being free and open source, if you find it useful, please consider supporting it.
It adds an area in the status bar, indicating if the file is read-only or writeable. It will be automatically updated, every time you open any file.
The indicator is automatically updated. You don't need to do anything.
File Access | Status Bar Preview |
---|---|
Read-only | |
Writeable |
File Access: Change File Access
File Access: Toggle File Access
File Access: Make Read Only [RO]
File Access: Make Writeable [RW]
Make Read Only
Make Writeable
Note These commands are not available on Linux.
-
Defines the position where the Status Bar indicator is located
"fileAccess.position": "left" // or "right"
-
Define how much information is displayed in the Status Bar indicator
"fileAccess.uiMode": "complete" // or "simple" or "iconOnly"
-
Hides the Status Bar indicator when the file is Writeable
"fileAccess.hideWhenWriteable": true // or false
-
Set what to do when the Status Bar indicator is clicked
"fileAccess.indicatorAction": "choose" // or "toggle"
For more information about customizing colors in VSCode, see Theme Color.
- Choose the Status Bar indicator text color when the file is Read Only
"workbench.colorCustomizations": {
"fileAccess.readonlyForeground": "#ff7fc0",
}
- Choose the Status Bar indicator text color when the file is Writeable
"workbench.colorCustomizations": {
"fileAccess.writeableForeground": "#7fcc7f",
}
Special thanks to the people that have contributed to the project:
- Riku Kanayama (@k-kuroguro) - Wrong description on Readme (see PR)
- dO.Ob -> zhaolei (@zzhaolei) - Support folder level commands to MacOS (see PR)
- Riku Kanayama (@k-kuroguro) - Typos in settings names (see PR)
- Riku Kanayama (@k-kuroguro) - Support folder level commands to change File Access (see PR)
- Riku Kanayama (@k-kuroguro) - New Command:
File Access: Toggle File Access
(see PR) - Chris Antos (@chrisant996) - Settings to choose the colors of the Status Bar text (see PR)
- Chris Antos (@chrisant996) - Only show Status Bar indicator when Read-only (see PR)
- joshwiker14 (@joshwiker14) - Add support for MacOs and Linux (see PR)
- Tom Chapple (@TomChapple) - Allow for toggling File Access via Status Bar (see PR)
- Franklin Yu (@FranklinYu) - Reformat Readme (see PR)
Also thanks to everyone who helped opening issues with ideas and bug reports.
MIT © Alessandro Fragnani