Announcement

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

  • Loading do-file editor and other windows on startup

    I tend to load the do-file editor right after I start Stata. I often also open the data editor and viewer. Is there a way I can change the Stata configuration to load the do-file editor, data editor (in browse mode) and viewer at startup automatically?

    Bonus (I am dreaming!):
    I have a 4K monitor and I use it at full resolution. I place the four windows (the three mentioned above + main Stata window) in a 2x2 grid. If I can somehow load the four windows in a preset 2x2 grid manner, that will be super nice. I am willing to configure Windows 10 settings to achieve this.

    If any of you have used Anaconda Spyder for Python, you can probably see that I am trying to replicate that desktop environment.

    Any help is much appreciated.

  • #2
    Start by adding the following three commands to the end of your profile.do file.
    Code:
    doedit
    browse
    view
    That will cause the three windows to open when the profile.do is run automatically when you launch Stata.

    On my macOS system, some combination of Stata and macOS provides intelligence enough that windows open in the size and location they were last found in. That's not perfect, because you might need to move or resize windows for some specific purpose, but if you are serious about using that layout and don't mess about with the windows once they're open, this may work for you. Or perhaps someone with Windows 10 can share tips for the Windows side of the problem.

    If you are unfamiliar with profile.do see Appendix B of the Getting Started with Stata for Windows PDF included in your Stata installation and accessible through Stata's Help menu.

    Comment


    • #3
      I changed the profile.do file and it worked. I also resized and positioned the four windows the way I want them to be and closed and restarted Stata and they reopened in the desired places and sizes (almost).

      Thanks.

      Comment

      Working...
      X