在IntelliJ中折叠自定义区域(typeScript)

时间:2016-10-14 14:30:23

标签: netbeans intellij-idea

在Visual Studio和Netbeans中,我可以使用行注释折叠自定义区域。

  

- 视觉工作室风格:

#region Description Your code goes here... #endregion

  

-netbeans风格:

// <editor-fold desc="Description">
     Your code goes here...
// </editor-fold>

我的问题是,我可以在intellij想法中折叠自定义区域吗?

2 个答案:

答案 0 :(得分:5)

  • 转到代码 - &gt;环绕...... (或 Ctrl + Alt + T
  • 选择 region..endregion评论

请参阅this了解更多信息。

答案 1 :(得分:0)

打字稿

VSCode

// #region NameOfRegion
   // * Your Code Here ...
// #endregion

WebStorm

// region NameOfRegion
   // * Your Code Here ...
// endregion

区别在于'region'前的'#'

相关问题