Announcement

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

  • Code folding in Stata do editor

    Colleagues,

    I was wondering if there are any tricks to fold code in the Stata do editor, similar to the examples outlined here. I figured out that putting some code between {} brackets to some extent works as code folding feature but it's far from ideal as it unfolds on opening the file. The only alternative solutions are rather onerous as would involved using external text editors and passing the code to Stata.
    Kind regards,
    Konrad
    Version: Stata/IC 13.1

  • #2
    Hi Konrad,

    I was looking into this myself. It's quite annoying. I don't suppose you've found a workable solution in the do-file editor?

    Best,
    Michael

    Comment


    • #3
      I am also looking for a more sophisticated solution - I currently fold in qui brackets- for example

      qui { // some notes on what is in the folded code
      use tmp.dta, clear
      save tmp2.dta, replace
      }

      Comment

      Working...
      X