Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Execute script from the top, stop at the cursor?

    When I edit a previously written script, I often need to run the script from the top, down to and including the line I am editing, and stop there to inspect the results. It is possible to do this by selecting all the previous code and "Execute selection", which is cumbersome when the script is long. Or I can write "exit" on the next line, but then I'd have to push that "exit" in front of me down the whole editing process, and I find that somewhat tedious.

    There is a menu item in the Script Editor: Tools/Execute (do) to bottom. I wish for the exact opposite, Execute from top and stop at cursor. Would that be possible to add? Or, are there more clever ways to do this than I have discovered?

  • #2
    Type:
    Code:
    /*
    on the line where your cursor is.

    Then press ctrl+d to execute the entire script. Everything after the '/*' will be ignored

    Comment


    • #3
      The do file editor uses Scintilla/SciTe editor components. Some of the SciTe keyboard shortcuts are available including:

      Ctrl+Shift+Home Extend selection to start of document

      http://www.scintilla.org/SciTEDoc.html

      http://the-automator.com/scite-edito...tcuts-hotkeys/

      Comment

      Working...
      X