auto-indent

Convert entire (Python) file from 2-space indent to 4-space indent

Convert entire (Python) file from 2-space indent to 4-space indent Question: I regularly work with Python files that are provided to me as templates, which use an indentation of 2. However, I personally prefer working with an indentation width of 4, which is what I’ve set in my .vimrc. However, because of the indentation-sensitivity of …

Total answers: 4

Can we use Python 4's end keyword in Python 2.7?

Can we use Python 4's end keyword in Python 2.7? Question: Because of my ancient animation pipeline, I am stuck with python 2.7. I saw that python 4 will have an end keyword which can already be used in python 3 with pyend (https://pypi.org/project/pyend/). I am using that in some python 3 projects already and …

Total answers: 1