问题
In the Netbeans IDE, is there a way to make a file read-only or prevent the file's contents from being edited, even though the file is part of a project as source code, a test package, or a data file?
PLEASE NOTE: I know a version control system should be used for any kind of project, and I diff any file with the version control copy before committing the changes to the repository; I'm just wondering if there's a way to "lock" a file in this editor/IDE.
回答1:
After further research, this feature appears to have been added as an add on:
http://plugins.netbeans.org/plugin/23133/switch-file-read-write-access
http://kenai.com/projects/file-rw-switcher/pages/Home
来源:https://stackoverflow.com/questions/14288668/netbeans-ide-is-there-a-way-to-make-files-read-only-or-lock-the-contents