ts(9)
[Home]
[Commands]
[Variables]
[Macro-Dev]
[Glossary]
SYNOPSIS
FILES
hkts.emf - Typescript programming language hook definition
ts.eaf - Typescript programming language abbreviation file
ts.etf - Typescript programming language template file
EXTENSIONS
DESCRIPTION
General Editing
On creating a new file, a new header is automatically included into the file.
time(2m) is by default enabled, allowing the modification time-stamp to be maintained in the header.
Hilighting
The hilighting features allow commands, functions, classes variables, logical, comments, strings and characters of the language to be differentiated and rendered in different colors.
Auto Layout
The command
indent(2) performs automatic layout of the text.
Comments may be formatted using esc o, which reformats the comments according to the current fill paragraph. If a comment commences with /***... then the comment is automatically formatted to a box.
Folding and Information Hiding
Generic folding is enabled within the Typescript file. The folds occur about function, class, enums, interface and type definitions and are continued until the next line with an closing curly brace.
collapse-all(3) (un)folds all regions in the file,
collapse-current(3) (un)folds the current region.
Navigation via Item List
The Typescript mode offers beside folding as well support for displaying an outline of the functions, classes, methods, enums, types and interfaces. The functions can be explored with easy navigation using the
item-list(3)
Abbreviations
The installation comes with a default abbreviation file for Typescript file editing which can be used by writing short abbreviations like "fo" (for), "if", "ei" (else if) or "cl" (class) - and then pressing the key-binding for the
expand-abbrev-handle(3) command. The list of abbreviations can be used interactively in the GUI version of MicroEmacs using the
abbrev-list(3) command.
Working Environment
compile(3) may be invoked to rebuild the source, the user is prompted to save any files.
Short Cuts
The short cut keys used within the buffer are:-
C-c C-c - Comment out the current line.
C-c C-d - Uncomment the current line.
C-c C-e - Comment to the end of the line with hyphens (--).
esc q - Format a comment.
esc o - Format a comment.
f2 - (Un)fold the current region.
C-f2 - (Un)fold all regions.
f6 - List items.
esc f6 - Close item list,
NOTES
The hilighting or the addition of new item list matches is typically extended using a file myts.emf.
SEE ALSO
(c) Copyright JASSPA 2026
Last Modified: 2025/12/15
Generated On: 2026/01/31