天天看點

vscode "Cannot edit in read-only editor"

因為vscode是跨平台的,是以在各個系統上是通用的

其實對于這個問題我倒是覺得這不是個問題。很正常的一個現象吧。可以通過一些配置檔案進行修改的。

方法一:

vscode "Cannot edit in read-only editor"

你可以吧false改為true。然後關閉vscode重新打開。

方法二:

vscode "Cannot edit in read-only editor"

之後在setting裡面查詢runlnTerminal

vscode "Cannot edit in read-only editor"

勾選就可以解決不能cin的問題了。

産生的原因

使用了runcode插件

這個錯誤一般出現在使用指令行輸入的時候出現。

但是output頁面是隻讀的,隻能輸出,不能用來輸入。

解決

解放方法是,将run code設定為在Teminal中運作:

File -> Preferences -> Settings

找到run code in terminal設定,打上√

vscode "Cannot edit in read-only editor"

繼續閱讀