bernhard Posted May 29, 2016 Posted May 29, 2016 yesterday i found out a very nice feature of sublime called "code folding". maybe it's not new for some of you, but it was for me and makes working a lot more comfortable. you can fold your code depending on levels: CTRL + K, then CTRL + 2 will fold on level 2: when you have your cursor inside a method, it will stay expanded. you can then fold your method on level 3: CTRL + K, then CTRL + 3: that's really nice. you can also find it in the menu under edit > code folding another great feature of sublime is multicursor. i guess most of sublime users know that... so i thought i start a new topic where we can share nice tipps and tricks for sublime and the work with processwire do you have any? ps: https://processwire.com/talk/topic/4203-sublime-text-2-snippets-for-processwire/ https://processwire.com/talk/topic/1888-sublime-text-2-course/ 3
AndZyk Posted June 1, 2016 Posted June 1, 2016 Two of my favorite keyboard shortcuts so far in Sublime Text are: ⌘ + D: Select word - Repeat to select next occurrence ⌃ + ⇧ + W: Wrap Selection in html tag (or ⌃ + W for choosing the html tag) Of course there are much more. 3
arjen Posted June 1, 2016 Posted June 1, 2016 Just switched back to ST coming from Atom (so nice, but so slow). ⌘ + P = Go to anything. 4
bernhard Posted June 15, 2016 Author Posted June 15, 2016 ALT + F3 = select all occurences of current selection 1
Yannick Albert Posted June 15, 2016 Posted June 15, 2016 Sort selected lines alphabetical. FN + F5 (Mac OS X) F9 (Windows + Linux)
bernhard Posted June 15, 2016 Author Posted June 15, 2016 Sort selected lines alphabetical. FN + F5 (Mac OS X) F9 (Windows + Linux) hm... do you use/need this often?
Yannick Albert Posted June 15, 2016 Posted June 15, 2016 On 15.6.2016 at 11:43 PM, bernhard said: hm... do you use/need this often? Not as often as I should. Mostly to sort properties in css style blocks or arrays/objects. I follow googles styleguide https://google.github.io/styleguide/htmlcssguide.html#Declaration_Order 1
Recommended Posts