Skip to content

Workspace setting to open files as read-only/non-editable via editor. #12227

@rmchndrng

Description

@rmchndrng
  • VSCode Version:1.5.2
  • OS Version:Windows 10

Feature request: Option to allow certain files to be open in the editor only as Read-only.
A workspace settings similar to "files.exclude".

"files.readOnly": {       
         "client/src/app/common":true, //Folder
         "server/src/common":true,
         "common/**/*.ts":true //Globs,
         "client/src/app/test.ts":true //Specific file
}

With the above settings, a user will not be able to make any changes to the files specified via the editor.

A sample scenario is mentioned in the stack overflow question
http://stackoverflow.com/questions/39560184/open-certain-files-in-a-workspace-as-read-only-in-vs-code

Metadata

Metadata

Assignees

No one assigned

    Labels

    *duplicateIssue identified as a duplicate of another issue(s)feature-requestRequest for new features or functionality

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions