tab replace to space 4

Pankaj Jangid p4j at j4d.net
Fri Nov 29 01:53:18 EST 2019


황병희 <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.

Regards,
-- 
Pankaj Jangid


More information about the Python-list mailing list