ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Doxy​Doxygen

by 20Tauri ALL

Make commenting easier. Supports Doxygen, JsDoc3, PhpDocumentor...

Details

Installs

  • Total 37K
  • Win 19K
  • Mac 8K
  • Linux 10K
Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3
Windows 1 7 0 2 1 5 3 5 5 4 1 2 3 2 0 4 1 5 2 1 1 1 4 3 3 6 4 3 2 4 2 2 2 3 6 2 2 1 2 5 5 2 4 5 4 1
Mac 0 0 0 0 1 2 0 4 1 0 0 1 2 1 2 2 0 1 1 1 2 0 2 1 0 0 0 2 0 2 1 2 1 1 1 4 2 0 0 2 1 0 3 0 0 0
Linux 0 2 1 1 1 1 1 0 3 1 2 0 1 0 1 2 0 1 6 3 2 1 0 1 2 1 3 0 2 2 1 0 0 2 2 3 2 2 2 1 2 3 0 1 2 0

Readme

Source
raw.​githubusercontent.​com

Welcome to DoxyDoxygen

DoxyDoxygen is a plug-in for Sublime Text that aims to save a lot of time and efforts when creating and updating documentation comments in source code.

How does it work ?

  • Write your code
  • Press Alt+Q (or /** + Enter), code is parsed and a skeleton documentation is written for you
  • Update your code
  • Press Alt+Q, documentation is updated

DoxyDoxygen can be easily configured to suit your needs.

Documentation is generated… Descriptions are written in your native language…

And, reading this manual you will discover even more features like on demand translation…

Usage

Create a documentation block

Start a documentation block (usually /**) before a declaration, then press Enter. The corresponding documentation will automatically be inserted. There are no keyboard shortcuts to memorize.

To be more efficient, you may also press Alt+Q (or Super+Alt+Q on OS X) after the function definition. A documentation block is written for you.

Types are automatically deduced from the code:

Even difficult to analyze programming languages are properly supported:

If a function has a template parameter, a @tparam property is automatically added:

And, of course, classes (with template or not) are also supported.

Update / wrap an existing documentation block

To update a comment, press Alt+Q (or Super+Alt+Q on OS X). As DoxyDoxygen knows the Doxygen commands, no invalid line break will be inserted.

Even better, with default settings, Alt+Q also reexamine the documented object and detects missing, renamed or moved parameters:

DoxyDoxygen preserves list with hierarchy. On update, spaces before an item are kept. A valid list item is a line that start with -#, -, + or *.

Example of valid list

/**
 * @return Error code
 *           - E_OK
 *           - E_ACCESS_DENIED
 *           - E_INTERNAL
 */

Example of invalid list

/**
 * @return Error code:
 *           E_OK
 *           E_ACCESS_DENIED
 *           E_INTERNAL
 */

Invalid list after an update

/**
 * @return Error code: E_OK E_ACCESS_DENIED E_INTERNAL
 */

Switch between comment styles

To switch between your preferred comment styles, press Shift+Alt+Q (or Super+Shift+Alt+Q on OS X).

You can also find more flexible commands in the Command Palette.

Extend a documentation block

Auto-completion

DoxyDoxygen allows auto-completion. A large set of commands is available,

Available commands depends of doc-style:

Only commands matching your configured doc-styles are suggested.

For example, to get the list of available commands, press @. Then, press Ctrl+Space to display the completion list.

Ctrl+Space is optional, but Sublime Text defaults settings deactivate completion in comment (see auto_complete_selector settings).

Comment continuation

As you can see on previous example, pressing Enter consecutively automatically continues the comment.

warning

On single line comment, comment continuation may appear as strange on the last line comment (///). The behavior is optional (see parameter continuation_on_last_comment). If activated, you can press Shift+Enter to stop continuation.

Navigate in documentation

Move to the right column

To ease navigation, press End (Super+Right on OS X) on end-of-line to go to the next column.

Follow references

warning

Doxygen file only (.dox)

You can move from a @ref tag to the referenced page or section using the goto_definition command (press F12 using Sublime Text default key bindings)

Fold / Unfold comments

You can Fold / Unfold comments blocks from the Command Palette or using Sublime Text standard shortcuts.

On Windows and Linux:

  • Ctrl+Shift+[: Fold
  • Ctrl+Shift+]: Unfold

On OS X:

  • Super+Alt+[: Fold
  • Super+Alt+]: Unfold

Translate

warning

Translations use network service. If you are behind a proxy, don't forget to configure it before using those features.

To translate selections, go to the Command Palette (Ctrl+Shift+P), then select DoxyDoxygen: Translate or DoxyDoxygen: Translate To to translate them.

tip

If a cursor is in a comment block (without selection), all descriptions of this comment will be translated.

Generate documentation

If you use Doxygen, you can generate your documentation directly from the Command Palette. An assistant will help you to download tools and configure your project.

note

Before command execution, DoxyDoxygen parses the Doxyfile file and extract all heading @INCLUDE. For each included file, an environment variable s generated. The name of this variable is: DOXYDOXYGEN_GENERATED_<base_name_without_extension>_PATH and its value is the path where the file is stored. This allows relative inclusion inside each included file (useful for footer…)

If the filename contains non alpha-numeric characters, they are replaced with _.

  • ../path/filename.ext defines a variable DOXYDOXYGEN_GENERATED_FILENAME_PATH with the value ../path
  • path/A@STRANGE!VALUE.ext defines a variable DOXYDOXYGEN_GENERATED_A_STRANGE_VALUE_PATH with the value path

tip

If you want to include it in your build chain, you can call this command from the command-line.

User Guide

Support

License

DoxyDoxygen may be downloaded and evaluated for free, however a license must be purchased for continued use. See End User License Agreement for further informations.