Nur*_*hri 6 python visual-studio-code
我想在 VSCode 中折叠以下代码行
x = np.linspace(0, 20, 100)
plt.plot(x, np.sin(x))
plt.show()
Run Code Online (Sandbox Code Playgroud)
我该怎么做呢?ctrl + shift + [只会折叠功能。
你可以尝试这个免费扩展: Region Folding for VsCode
在 Native VScode 中执行此操作的另一种方法是:
#region
// your content here
#endregion
Run Code Online (Sandbox Code Playgroud)
该块将使箭头看起来折叠起来。
这是我最喜欢的方法:
#region ########################### UPDATE #####################
// your code here!
#endregion ########################### END UPDATE #############
Run Code Online (Sandbox Code Playgroud)
祝福!
| 归档时间: |
|
| 查看次数: |
15281 次 |
| 最近记录: |