Announcement

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

  • Can I restore previously closed ado files when I restart the Stata?

    Dear friends, can we restore previously closed ado files when we restart the Stata? Thank you in advance!

  • #2
    Yes, if you have saved them before restarting Stata.

    Comment


    • #3
      Thank you! I want to reopen the ado files which was not closed when the stata closes. They have been saved when the stata closes.

      Comment


      • #4
        I want to reopen the ado files which was not closed when the stata closes.
        This doesn't make any sense to me. Especially given that you specifically mention that the files were saved when Stata was closed.
        Assuming the latter is true, type: doedit "savedfilename.ado" , obviously substituting the name of your saved file.

        Comment


        • #5
          For me, it sounds like that you are asking for something like a "restore session" feature for the doedit-command to automatically re-open files which were open during the last session.
          At least Stata 14 has no such feature, so you need to use a different editor like for example Notepad++ which has such feature. But of course other editors are not integrated into Stata.

          Comment


          • #6
            Thank you, @Sergiy Radyakinand Sven-Kristjan Bormann!

            Comment


            • #7
              Sven-Kristjan Bormann wrote:
              For me, it sounds like that you are asking for something like a "restore session" feature for the doedit-command to automatically re-open files which were open during the last session.
              It remains anybody's guess what the TS meant. If the above is correct, then the set of files to be so united shall be grouped into a project, then to bring that to the editor one will use
              Code:
              projmanager projname
              Note that [at least in Stata 16.0 for Win] the manual for projmanager is not accurate indicating the default file extension as .dta, while in fact it is .stpr.

              Recently used projects can be easily accessible from the corresponding sub-menu in the File menu, so you don't need to bother about the command line for that.

              The only difference, perhaps, that the files are not reopened for edit right-away, but imho this is even better. You double-click on them in the project tree to open, rather than in the tabs.
              Click image for larger version

Name:	projmanager.png
Views:	1
Size:	47.3 KB
ID:	1555835


              Comment

              Working...
              X