--- tags: vscode, disqus: hackmd --- # #region #endregion 在vs code打code的時候 常常會遇到折疊起來的Code可能在打到一半的時候因為某些特殊原因又展開了 很煩! 不理又展開的就要在那邊捲,要再一個一個摺疊回去,等一下可能又展開了 ## 介紹救星 這是我在看教學影片時的意外收穫,使用`//#region`跟`//#endregion` 把程式碼給包起來就可以避免這個意外展開摺疊起來的程式碼的問題 ```javascript= <script> //#region function xxx() { XXXXXXXX } //#endregion </script> ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up