📄 viewsource.hlp
字号:
{smcl}
{* 10feb2005}{...}
{cmd:help viewsource}
{hline}
{title:Title}
{pstd}
{hi:[P] viewsource} {hline 2} {bf:View source code}
{title:Syntax}
{phang}
{cmd:viewsource}
{it:filename}
{title:Description}
{pstd}
{cmd:viewsource} searches for {it:filename} along the {help sysdir:adopath}
and displays the file in the Viewer.
{title:Remarks}
{pstd}
Say that you wish to look at the source for {helpb ml}. You know that
{cmd:ml} is an ado-file, and therefore the filename is {cmd:ml.ado}. You type
. {cmd:viewsource ml.ado}
{pstd}
{helpb program} is not implemented as an ado-file:
. {cmd:viewsource program.ado}
{err:file "program.ado" not found}
{pstd}
By the way, you can find out where the file is stored by typing
. {cmd:findfile ml.ado}
C:\stata\ado\base\ml.ado
{phang}
See {helpb findfile}.
{title:Also see}
{psee}
Manual: {hi:[P] viewsource}
{psee}
Online: {helpb copysource},
{helpb findfile}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -