Title

source -- Open (non-data) files

Syntax

source file|profile

Description

source opens files, such as .do or .ado files, in their default editors. You can specify an entire file-path, but a few shortcuts are available:

o- If you specify just the word profile, it will open your profile.do file for editing (if it's in your 'home' folder).

o- If you don't specify any directories, it will use the Stata system directories (so it will find Stata commands, for example).

o- If you don't specify a file extension, it will first search for .ado (ie, Stata commands) and then .mata (ie, Mata function source code).

Examples

source profile