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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Do file editor in Stata 12 for Mac


From   Maarten Buis <maartenlbuis@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Do file editor in Stata 12 for Mac
Date   Tue, 18 Jun 2013 16:11:58 +0200

On Tue, Jun 18, 2013 at 3:58 PM, Tunga Kantarcı wrote:
> I would like to ask a non-technical question. I have a do file with many
> lines of code. In Stata 12 Windows version, in my do file, I used to divide
> the code into sections and fold each section between two curly brackets so
> that the folded part of the code is hidden in the do file which tidies up
> the code. But I recently moved to Mac and now using Mac Stata 12 version.
> The do file editor now does not facilitate the use of curly brackets to
> fold lines of code. I wonder why and if there is a way I can achieve this.

If I feel the need to hide long parts of code in my .do-file (in my
case that would often be tedious recodes of many many occupational
titles) I typically store that part in its own .do-file and whithin
the main .do-file I just type -run tedious_recodes.do-. This will
always work, and the added advantage is that it is often the tedious
part that you want to hide that you can re-use in related projects.
Having them in a seperate file makes that very easy.

Hope this helps,
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