spaces tabs
-
Is there a way to replace the 3 spaces with tab character without visiting each line and manually replacing them. Thanks.
-
Edit > Blank Operations > Space to TAB (all) or Space to TAB (leading) might do what you want.
Otherwise, a regular expression could do it
- find
\x20{3}replace\t– anywhere in the line - find
^\x20{3}replace\t– only at the beginning
If you’ve got more than one group of three spaces, the regex would have to be adjusted, whereas the Space to TAB should handle that automatically.
- find
-
@PeterJones said in spaces tabs:
Edit > Blank Operations > Space to TAB (all) or Space to TAB (leading) might do what you want.
Might is very accurate with this method. It will depend upon your setting for how many spaces a tab represents, found in the Preferences. The regular expression replacement method will work without regard to any setup.
-
@PeterJones Space to Tab (leading) took care almost all of them. Thanks.
-
@Alan-Kilborn Space to Tab (leading) took care almost all of them. Space to tab (all) works as well. Thanks.
-
@James-Dunn said in spaces tabs:
Space to Tab (leading) took care almost all of them. Space to tab (all) works as well.
If it works then it must be that you have a setting of 3 spaces for each tab in your Preferences.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login