Autocompletion Using the Autocomplete Snippet Pressing shift+F1 will do the same but opening it in the Stata Viewer. Pressing the F1 key will search for the help file of any selected word and try to open it in Sublime Text. Technical note: a header comment is just a line that starts with "// " (nothing before the slashes, and a space after them). To insert a header comment, use the "header" snippet (type "head", then Tab). Currently, it recognizes program declarations and "header comments". You can jump to different sections of the do-file with the ctrl+g shortcut. Within a snippet, press Tab to go to the next value: Snippets are "intelligent" and allow to be completed in order, indicating variables, options, etc. To see all available snippets, press "snip" in the Command Palette or go to Tools - Snippets. To use a snippet, just start writing it and then press Tab: Note that building a file is the Sublime Text equivalent of do and run in Stata.Ī do-file can be run in its entirety, as seen below, but also partially when part of the code is selected. To do or run the file, press ctrl+b (do) or ctrl+shift+b (run), or go to the Build menu. mata), ii) click on the lower right corner, or iii) type "syntax: stata" in the Command Palette To use the Stata package and syntax highlighting, you can either i) save the file as a Stata type (.do. You can quickly jump to a header or program with the ctrl+r key ("goto symbol")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |