码迷,mamicode.com
首页 > 其他好文 > 详细

[Tools] Region commands to collapse the code by group

时间:2018-12-07 21:15:20      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:about   comm   lin   too   com   pre   http   bundle   alt   

For a file which contians lots of lines of code, we can use ‘comments region‘ to collapse the code.

import "./styles.css";

// #region setup                              
document.getElementById("app").innerHTML = `
<h1>Hello Vanilla!</h1>
<div>
  We use Parcel to bundle this sandbox, you can find more info about Parcel
  <a href="https://parceljs.org" target="_blank" rel="noopener noreferrer">here</a>.
</div>
`;
// #endregion

 

技术分享图片

 

[Tools] Region commands to collapse the code by group

标签:about   comm   lin   too   com   pre   http   bundle   alt   

原文地址:https://www.cnblogs.com/Answer1215/p/10084251.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!