首页 > 其他 > 详细

[Tools] Region commands to collapse the code by group

时间:2018-12-07 19:03:37      阅读:175      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!