I have been using ST3 to write python for a while, but the auto-indentation has confused me sometimes.
I am currently writing a python function and I noticed that if there is a comment at the end of a line of code, the auto-indentation by pressing enter at middle of the line won't work. For example, I have the following lines:
fig = plt.figure(num = 0, figsize = (10,10))
fig = plt.figure(num = 0, figsize = (10,10)) #This creates a figure
By pressing 'Enter' before 'figsize' in both lines, the first line would auto-indent while the second wouldn't: Indent Issue Image
Does anyone has any solution to this? I can add the comment after using the indentation but it is always a fuss to do this.