_M.cpp - Textadept API

# Textadept

- Home |
- Download |
- Lua API |
- Source |
- Language Modules |
- Stats |
- Wiki |
- Mailing List

# _M.cpp

The cpp module. It provides utilities for editing C/C++ code.

## Key Bindings

- `Ctrl+L, M` (`⌘L, M` on Mac OSX | `M-L, M` in curses) Open this module for editing.
- `.` Show an autocompletion list of members for the symbol behind the caret.
- `->` Show an autocompletion list of members for the symbol behind the caret.
- `Shift+Enter` (`⇧↩` | `S-Enter`) Add ‘;’ to the end of the current line and insert a newline.

## Fields

### `sense`

The C/C++ Adeptsense. It loads user tags from `_USERHOME`/modules/cpp/tags and user apidocs from `_USERHOME`/modules/cpp/api.

## Tables

### `_G.keys.cpp`

Table of C/C++-specific key bindings.

### `_G.snippets.cpp`

Table of C/C++-specific snippets.