Sublime Forum

TABs converts to SPACEs when copying

#1

If I copy some code from one source file to another source file, each TABs in the original file turn out to be two SPACEs in the target file. How can I prevent this from happening? Thanks a lot :smiley:
http://bbs.qshpan.com/attachment/photo/Mon_1301/897610d9bb2cc7bd782d.png

0 Likes

#2

Set the indentation in the destination file to use tabs instead of spaces.

0 Likes

#3

You could make a plugin that (1)pastes text then (2) converts tabs to spaces. Then just bind the plugin to control/command + V.

0 Likes