Xshell Forum

Code block paste adding additional indent

Last post: Thursday, March 30, 2017 5:48 PM by Support, 1 reply

 
Sunday, March 26, 2017 4:43 AM - MingXian Wu

Code block paste adding additional indent

 
when pasting a block of python code in ipython, Xshell 5 adding addtional indent. And this results in an indent match error, but putty has not this problem

Program Ver. : Xshell 5
Thursday, March 30, 2017 5:48 PM - Support

Re: Code block paste adding additional indent

 
In programs such as vim, the auto indent feature can create issues. I believe ipython does this as well.

You need to temporarily set auto indentation off when pasting long lines using the following:

In [1] : $autoindent
Automatic indentation is: OFF

Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog