简体   繁体   中英

Pydev indentation warning in Eclipse

I am using PyDev perspective. I get a bad indentation warning in python files. I just copy code from somewhere else, I cannot make sure how much space others use... so how to automatically format that or how to erase that warning? It looks bad.

There is no 'automatic' way for that... But usually in this situation you can just do a find/replace from 2 spaces to 3 spaces (or whatever was the format you had to the expected format).

Sometimes rectangular editing is helpful there too (hint: use alt+shift+A to enter/leave rectangular editing mode).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM