Buy Me A Coffee 😇
Cover Image New Useful Setting from VS Code

New Useful Setting from VS Code

/ VS Code has been the most popular VS Code 1.79.0 has a lot of updates, and let us look at some new things that I believe are going to be useful.

Jun. 09, 2023. 1:13 AM

Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS, and Linux.

So, what is the new update from this version that I think is very useful in Version 1.79.0?

Read-only Mode

In this version, they added a way to be able to mark files as read-only. With this, it will lock files to avoid modifying the file.

To be able to access this here are some ways. You can edit it from the setting for universal use, something like this.

If you want to set settings as global settings, you can set it in the User Tab, but if just want to set the setting only for the workplace, set the setting in the Workplace tab.

Here are setting you can modify for read-only files:

  • files.readonlyInclude - Paths or glob patterns to make a file read-only if matching.

  • files.readonlyExclude- Paths or glob patterns to skip files from being read-only when they match files.readonlyInclude.

  • files.readonlyFromPermissions - Whether a file that has no write-permissions on disk should be read-only.

Once you set up file or files on the files.readonlyInclude it will lock the file and will not let you edit that file.

This is really useful to avoid editing your protected files.

So, that's it! I hope you learn something! Adios! 🫰🙌

If you enjoy this article and would like to show your support, you can easily do so by buying me a coffee. Your contribution is greatly appreciated!

Jenuel Ganawed Buy me Coffee