Atom Editor: Fold selection onto single line -


is there way in atom fold entire selection on new line? i'm trying make package lets me select multiple lines of code , fold them. markup this:

/* text colors */  .text-red {     color: red; }  .text-green {     color: green; }  .text-blue {     color: blue; }  /* typography */  h1 {     font-size: 30px; } 

and when fold it, this:

/* text colors */  [...]  /* typography */  h1 {     font-size: 30px; } 

this way can view looks of sections in code @ same time. i've tried using foldselectedlines unfortunately ends folding this:

/* text colors */  .text-red {[...]  /* typography */  h1 {     font-size: 30px; } 

its ctrl-alt-f on linux & windows or ctrl---f on mac.

also in atom press ctrl-shift-p (or -shift-p on mac) open command palette , type fold list of possible fold options , related keyboard shortcuts.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -