简体   繁体   中英

Sublime Text HTML element folding arrow

The fold arrow in the gutter doesn't have arrows for all indented elements in HTML, only a few:

屏幕截图

It only shows an arrow on line #2 and #6. This is with reindenting and --- "tab_size": 2, "translate_tabs_to_spaces": true --- in my user settings.

Is anyone else experiencing this? I have the fold arrows set to always show and it'd be so much faster to be able to collapse each respective HTML element when necessary.

Thanks!

Your indentation must to be well done to have folding arrows :

SublimeText

Preferences

"tab_size": 4,
"tabs_small": true,
"translate_tabs_to_spaces": true

Reiterating to what Alex has said, if Indentation is what's causing this .. Have

[
    {"keys": ["f12"], "command": "reindent"}
]

in your user preferences. Ctrl+A and then f12 and see if you get the collapsing arrows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM