Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
480 views
in Technique[技术] by (71.8m points)

xml - Notepad++ fold all tags by default?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

There is a way to define a user-defined language for you to tell Notepad++ to fold tabs by default.

This is an unnecessary procedure however, since you can very quickly fold tabs without having to specially create a user-defined language each time you have a large, clunky xml file.

Use the shortcuts Alt+4 and then Alt+3...... Alt+1 to fold your xml tags in a sequence, depending on the depth you want to fold to. To expand only a particular level once again, just Ctrl-click the + sign next to the tag you want to expand. This is the best way to view large blocks of any code in Notepad++, and avoids having to spend a lot of time configuring a special style for each language. Once your tabs are folded to the desired depth, you can insert comments where required. Few steps, easy results.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...