Code Indentation following comment

Working on new editor enhancements?
Perkin
Enthusiast
Enthusiast
Posts: 504
Joined: Thu Jul 03, 2008 10:13 pm
Location: Kent, UK

Code Indentation following comment

Post by Perkin »

Is there any way to set the auto-indentation to ignore comments
Please ignore the actual code, I'm just trying to solve the annoying indentation problem

If say, I'm testing, and I have these following lines (lifted from inside other code)

Code: Select all

				time = Mid(thisline, firstspace + 4, lenofline-firstspace-3)
; 				dummy.s = Str(track) + Chr(10) + tracktitle + Chr(10) + time + Chr(10) + endtime + Chr(10) + performer + Chr(10) + Picture + Chr(10) + TxtFile
; 				AddGadgetItem(#ListMP3, -1, dummy)
				
				AddGadgetItem(#CE_Tree, -1, tracktitle,ImageID(#CE_Icon),-1)
				SetGadgetItemState(#CE_Tree, CountGadgetItems(#CE_Tree)-1, #PB_Tree_Checked)
				Picture.s = ""
If I go to the end of the 5th line and press enter, to insert a line after this one, to add commands before the next line, then the 5th line will reset it's indentation to the same level as the commented out code above it.
I would like to know if there's any setting allow the IDE to ignore the commented indentation, and get it from the previous 'active' line.
%101010 = $2A = 42
Perkin
Enthusiast
Enthusiast
Posts: 504
Joined: Thu Jul 03, 2008 10:13 pm
Location: Kent, UK

Re: Code Indentation following comment

Post by Perkin »

I've just thought, maybe change the 'Insert Comments' (CTRL+B) command to respect the indentation and comment at the indent point rather than the line beginning.

This would solve it.
%101010 = $2A = 42
Post Reply