[英]Commenting a block of folded code causes it to unfold in visual studio code
假設我有一個簡單的javascript方法。
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World!');
}).listen(8080);
如果我在Visual Studio代碼中將其折疊並注釋,則代碼會自動展開。 有辦法阻止這種情況嗎?
看來您必須使用塊注釋來注釋折疊的代碼並使它保持折疊狀態。
Shift - Alt - A
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.