问题
Sometimes on the right side of any Visual Studio tab there will be a little padlock symbol. What is it?
I thought it was something like source-control, but my solution is not checked in source-control.
EDIT: Thank you for your answers so far, BUT I can edit the files. When I am in debug mode it has also this padlock sign, but when I am holding my mouse over the tab I can read "Read-Only". Not in debug-mode (normal edit mode, nothing running), there is also the padlock symbol. But when I hold my mouse over the tab there is no readonly text.
Is there an other definition of the padlock sign? Or how can I see the padlock sign while editing my normal source code (and no debugging running)?
回答1:
It indicates that the file is read-only.
回答2:
If you're using version control (in my case - git) paddlock also indicates that the file is "locked" for a commit.
After any change in the file it changes to red tickmark. Then if you commit changes to this file it switches back to paddlock.
回答3:
Click the "stop debugging" red box button. That's why it's not letting you edit. Just found out myself ;)
回答4:
That means that the file is not editable by Visual Studio; usually it comes up when you ask VS to navigate to a definition that exists only in metadata. It will display what data it can, but show a padlock to indicate that you can't edit it.
回答5:
Starting the debugger and stopping it cleared them for me...
来源:https://stackoverflow.com/questions/3242279/what-is-the-little-padlock-symbol-near-every-visual-studio-tab