如果你的VS视图页面没有自动折叠,可以如图这样设置: VS折叠js可以用扩展插件:Indent Guides 转载于:https://www.cnblogs.com/samsonhuang/archive/2013/01/18/2866889.html