Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>API NotationNew to Visual Studio Code? Get it now.
API Notation

API Notation

rbdr

|
1,964 installs
| (0) | Free
Syntax Highlighting for API notation
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

API Notation Syntax for Atom

This is a grammar for api notation, a simple notation I've been using for annotating module APIs in specs and other documents.

Installing

From Command Line

code --install-extension rbdr.api-notation

From GUI

Open the Extension Manager from Palette Manager

  1. Press ⌘⇧P on OSX or ⌃⇧P on Windows/Linux to open the palette manager
  2. Look for `Install Ext4ensions

Open the Package Manager from Preferences

  1. Go to Code -> Preferences -> Extensions menu item

Install it

  1. Search for api-notation in the search bar
  2. Click Install

Usage

Open a .api file, or set it as your syntax.

API Notation Reference

The most recent reference as of now is in this gist, so check that to be sure. But here's a reproduction of the notation.

NameOfClass.WithPossibleNamespace
   + class property
   - instance property
  ~> listened events (socket)
  +> listened events (class/module)
  -> listened events (instance)
  <~ dispatched events (socket)
  <+ dispatched events(class/module)
  <- dispatched events (instance)
  :: class method
   # instance method

Other symbols
  => returns
->() callback return
[xx] optional
<xx> data type

Recommended order: class first, then sockets, then instance. Internally:
Properties, events, methods.

// Anything after two forward slashes is a comment

How does it look like?

Like this.

Like this.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft