Ability to execute scratch files (apex classes)

Issue #1580 resolved
Jurgis Salna created an issue

Executing apex via anonymous apex window is great, but over time a lot of useful crap ends up there making editing code quite hard. Plus log window is quite narrow.

That said, highlighting single line to execute is convenient. Unsure whether same can be implemented for scratch files.

Comments (3)

  1. Scott Wells repo owner

    I agree that this would be useful, so I just committed the change. Anonymous Apex/SOQL query code intentions are now available in Apex scratch files. If a scratch file contains a single SOQL query, it's executed as such; otherwise it's executed as anonymous Apex. This will be included in the next build.

  2. Log in to comment