Home/End key cursor functions and bracket locations

edited October 2016 in Using Processing

How long has the end key taken you to the bottom of the page instead of the end of the line? This is driving me bonkers. Is there any way to change so the end key takes you to the end of the line? Same applies to home key.

Also, I prefer my "else" to be on the line below the closing if }. Visually this makes a ton more sense to me. Can the auto format be changed?

Maybe I'm just crabby because I use Arduino a lot and that's how it works.

Answers

  • Answer ✓

    preferences.txt has the following which look like they would modify the home and end key behaviour

    editor.keys.home_and_end_travel_far=false
    editor.keys.home_and_end_travel_smart=true
    

    my END takes me to end of line, CTRL-END takes me end of document.

    (processing 3.0 linux)

    indentation details are, i think, compiled in

  • yes:

    https://github.com/processing/processing/blob/0abee5af6ad3b11cf2b73bb794b8a97c157c4762/build/formatter.xml

    probably

    <setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement" value="do not insert"/>
    
  • Awesome! My far was set to true, false fixes it!

    I feel dumb but where is this formatter.xml file or is that only if you use eclipse as an external editor?

  • it's in the build directory of the processing source tree in github - ie it's a compile time option, not user configurable.

  • (it's an org.eclipse library that processing uses)

Sign In or Register to comment.