Sublime Forum

Removing spaces and new lines and etc

#1

hi, how can i quickly delete all the empty spaces and stuff like the guy in the video below at 46:49

video

0 Likes

#2

he is doing un-indent for deleting leading spaces. and use regex replace \n to nothing to make things into a single line.


you can just use regex replace \s to nothing to do all of them in a single step, which removes ALL spaces.

1 Like

#3

thank you sir, so what is they key bind to do the first thing?

0 Likes

#4

ctrl+[ is unindent on Windows.
ctrl+] is indent.

1 Like

#5

thank you very much sir, i finally did it.

0 Likes