One feature I've found really useful in Sublime Text is the ability to fold HTML tag attributes. Is there a way to do this with VSCode that I'm missing?
            Asked
            
        
        
            Active
            
        
            Viewed 648 times
        
    1
            
            
        - 
                    have a look at this: https://stackoverflow.com/questions/30067767/how-do-i-collapse-sections-of-code-in-visual-studio-code-for-windows – Jayme Jun 26 '17 at 12:53
2 Answers
1
            
            
        I don't think there's a built-in way to do this. Also, it seems the extension API currently doesn't have a way of hiding characters, see this open feature request (except for a hack mentioned by the second comment).
Extensions also can't customize the built-in folding yet, see #3422.
 
    
    
        Gama11
        
- 31,714
- 9
- 78
- 100
-1
            
            
        To fold individual attributes just move your mouse pointer to the left of the editor, in the empty space on the right of the line numbers. Small - icons will appear. Click on the ones you want to fold items.
Keyboard shortcut is CTRL+SHIFT+].
You can get the full list of key bindings there: https://code.visualstudio.com/docs/getstarted/keybindings
 
    
    
        StephaneM
        
- 4,779
- 1
- 16
- 33
