Ticket #68 (assigned task)

Opened 6 months ago

Last modified 3 months ago

Smart AutoEditStrategies

Reported by: mb0 Assigned to: mb0 (accepted)
Priority: major Milestone: AXDT 0.0.5
Component: editor Version:
Keywords: Cc:

Description (Last modified by mb0)

  • add tab to space strategy, with tab width preference
  • add auto indent for newline strategy
  • add smart bracket completion and indent strategy
  • add multiline comment auto edit strategy

Change History

06/28/08 20:49:34 changed by mb0

  • type changed from defect to task.

07/08/08 01:33:15 changed by mb0

  • status changed from new to assigned.
  • description changed.

tab 2 space is included and has uses preference setting. [105]

auto edit strategy uses indent of last line... not yet smart.

07/16/08 03:30:18 changed by mb0

a newline after a '{' will add the right indent newline furthermore if close brace is enabled in the preference it will insert the correct '}' after the line content.

	if (isTrue) {<enter>i++;

will result in

	if (isTrue) {
		<cursor>i++;
	}

you can set preferences for auto closing ( Parentheses, [ Brackets, " and ' Strings.

and to not annoy you with stuff. i added some smarts.

  • it will only close the pair if there is not already a match
  • you can set a preference to delete neighboring pairs whenever you delete the left part. e.g. it is very handy if you type [ instead of a { by accident and naturally cover it up with a backspace.
  • for strings you can keep your habit to double type the hyphen it will simple override the match.

smart comment new line auto edit is not yet implemented.

however this is definitely something i will cover in the next screencast.

10/12/08 18:33:35 changed by mb0

  • milestone changed from AXDT 0.0.7 to AXDT 0.0.5.

with the new imp version we have fence matching, toggle comment (CONTROL-SHIFT-7) since [142] and even quick outline (CONTROL-O).