필터 지우기
필터 지우기

How can i lock editor window?

조회 수: 7 (최근 30일)
armin m
armin m 2021년 7월 5일
댓글: armin m 2021년 7월 6일
Hi. My codes have important information and if some data change, it is hard to find which data has changed. How can i lock editor window in order to such issue does not happens. Tnx

채택된 답변

Yongjian Feng
Yongjian Feng 2021년 7월 5일
  1. Change your file to be readonly, then you won't accidentally modify your file.
  2. Always keep a copy of the working file.
  댓글 수: 10
Yongjian Feng
Yongjian Feng 2021년 7월 6일
Check this: https://github.com/
armin m
armin m 2021년 7월 6일
Tnx

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2021년 7월 5일
@armin m, I believe you're mistaken when you say "properties>read only? It acctually change your code. If you change your code and accidentaly click on overwrite button which appear in run mode when you change read only file code."
I did exactly that. Made a file read only via the properties in file Explorer. That (changing property to readonly) did not change the code because when I opened it up in MATLAB's editor it was the same. However, I made a change to it and tried to save it and it said:
There is an "overwrite" button like you said and if you click it, it will save your changes and uncheck the readonly property, like you told it to. It gave you a warning but if you said to ignore the warning and do what you told it to do (overwrite), evidently it will trust you know what you're doing and do what you told it to do. Like it or not, that seems to be the way it operates.
So (1) don't change it, and (2) if you did change it, don't overwrite it. And (3) if you did overwrite it, get the original copy from your archive or backup.
  댓글 수: 1
armin m
armin m 2021년 7월 5일
Tnx. I meant exactly what you said but i explained badly. I looked for better way cause of what i said. thank you.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Source Control Integration에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by