Announcement

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

  • Customizing Do-File Editor Templates - Stata 19

    Dear Statalist community,

    Stata 19 introduced the ability to define and use Do-file Editor templates (https://www.stata.com/stata-news/new...d-we-listened/).

    Does anyone know whether these templates can be populated with dynamic content, such as the user name and current date? I'm basically trying to emulate the behavior of the built-in "ado" template, which conveniently includes the current date whenever a new file is initialized.

    Ideally, I'd like to create a template called standard.do which would, when called, open a do-file that looks like this (with the brackets dynamically filled):

    Code:
    *******************
    * Description:
    * Version: 1.0
    * Date: [current date]
    * Author: [user name]
    
    ...
    
    exit
    *******************
    Many thanks!
Working...
X