Visual Studio Code 1.79, published June 8 as the latest version of Microsoft’s code editor, features a read-only mode for specific files and folders in a workspace as a protective measure.
Also known as the May 2023 edition of the editor, developers can download the editor for Windows, Linux, or Mac from the Visual Studio Code website. With the read-only mode for the VS Code workbench, Microsoft notes that in some scenarios, it can be helpful to explicitly mark some files or folders as read-only. An example cited was a folder or file whose contents are being managed by different processes, such as the
mode_modules folder managed by the Node.js package manager. Marking them as read-only can prevent inadvertent changes.