tab replace to space 4

Terry Reedy tjreedy at udel.edu
Fri Nov 29 03:12:07 EST 2019


On 11/29/2019 1:53 AM, Pankaj Jangid wrote:
> 황병희 <soyeomul at doraji.xyz> writes:
>> usally i write python code in gnu emacs on ubuntu 18.04 sometimes i
>> re-edit the code vim in same machine so often when i do run the code in
>> shell like as ./test.py i meet consol error -- which line wrong!
>>
>> so i am considering how can i replace all tab to space 4 within python
>> code. if there is solution in google i am very sorry.
> 
> In Emacs, use "M-x untabify". And "M-x tabify" if you want to do the
> reverse.

IDLE has entries on the Format menu to do the same.


-- 
Terry Jan Reedy




More information about the Python-list mailing list