Skip to content

nikolamalesevic/vscode-restructuredtext

 
 

Repository files navigation

reStructuredText Language Support for Visual Studio Code

Gitter Current Version Install Count Open Issues Stories in Progress

Notice: Homepage for this extension is at GitHub Starting from 32.0.0 release, all path settings require absolute paths.

This extension provides rich reStructuredText language support for Visual Studio Code. Now you write reStructuredText scripts using the excellent IDE-like interface that VS Code provides. With live preview enabled, final look-and-feel is just one click away.

reStructuredText in Visual Studio Code

Features

  • Syntax highlighting

  • Code snippets

    • code Code block
    • image Image
    • figure Figure
    • link Link
    • attention Attention
    • note Note
    • warning Warning
    • error Error
    • hint Hint
    • important Important
    • caution Caution
    • danger Danger
    • tip Tip
    • admonition Admonition
    • rubric Rubric (footnote)
    • doc Doc reference
    • ref Label reference
    • label Label
    • download Download
    • file File
    • kbd Keyboard Shortcut

    To trigger snippets, please refer to Visual Studio Code shortcuts.

  • Live Preview (Experimental, and Sphinx must be configured in advanced)

    The shortcuts are

    • ctrl+shift+r Preview
    • ctrl+k r Preview to Side

Notice: The preview feature requires Python to be installed. The sphinx Python module is also required. Check out the steps to configure sphinx.

  • Linter (Experimental, and restructuredtext-lint must be configured in advanced)

Notice: The linter feature requires restructuredtext-lint Python module. Check out the steps to configure sphinx. Due to the facts that restructuredtext-lint does not support all Sphinx directives, there can be many false positives in its ouput.

How to install from Marketplace

This extension is hosted at Visual Studio Marketplace

  1. Upgrade to Visual Studio Code 1.3.0 or above.
  2. Switch to the Extensions view by clicking the fifth icon in the left most bar.
  3. Type "restructuredtext" in the search box and hit Enter key.
  4. Click "Install" button to install "reStructuredText" extension.

Contributing to the code

Check out the development documentation for more details on how to contribute to this extension!

Check the dashboard on work items.

License

This extension is licensed under the MIT License. Please see the [third-party notices](Third Party Notices.txt) file for details on the third-party files that we include with releases of this project.

Acknowledgements

Logo

The project logo comes from Legendora Icon by Teekatas Suwannakrua.

Linter

The linter support is based on Cody Hoover's ruby-linter.

Live Preview

The initial idea was brought from Thomas Haakon Townsend's ReStructured Text Previewer, but soon after moving fully to Sphinx, this extension becomes its own beast.

About

reStructuredText Language Support in Visual Studio Code

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 100.0%