Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Auto-collapse all "quietly" blocks in .do file


From   Maarten Buis <maartenlbuis@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Auto-collapse all "quietly" blocks in .do file
Date   Tue, 2 Apr 2013 12:16:11 +0200

On Mon, Apr 1, 2013 at 11:14 PM, Philip Longoni wrote:
> I use the "quietly" command not only to hide output, but also to structure my .do file, due to its size (>1200 lines).
>
> I would like to open my .do file and see all "quietly" blocks collapsed. However, whenever I re-open my .do file in the editor, all "quietly" blocks are expanded by default, as if I had clicked all the [+] fields on the left hand side in the editor.
>
> Is there a way to tell Stata to collapse all blocks at once, and to do so automatically when opening a file?

I don't think so.

The way I would tackle such a problem is to split the .do file up into
different do files. You can execute a do file quitely from another do
file by adding the line -run <dofilename>-.

-- Maarten

---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

http://www.maartenbuis.nl
---------------------------------
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index