In C# we can create regions by using
#region // some methods #endregion
Is there any way to format python code in similar fashion so that I can keep all my relevant methods in one block?
Advertisement
Answer
I recommend you have a look at PyDev. If you structure your Python code well it will be very useful to have a document outline and code folding. Unfortunately I don’t think you can do arbitrary structures like #region C# (VS) or #pragma mark in C/C++/ObjC (Xcode/CDT).