Giter VIP home page Giter VIP logo

vscode-restructuredtext's Introduction

reStructuredText Language Support for Visual Studio Code

Gitter Current Version Install Count Open Issues Stories in Progress

News: IntelliSense has been added since 47.0.0 release, thanks to the new Language Server.

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.

Homepage for this extension is at GitHub.

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 (on Mac cmd+shift+r) Preview
    • ctrl+k r (on Mac cmd+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 support.

  • Section Builder

    The shortcut is ctrl+= (on Mac cmd+=).

    Pressing the shortcut key would convert the current line under the cursor to a section, by adding adornment (underlines below the title text).

    Pressing the shortcut key multiple times switches among the adornment characters.

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

    Once configured properly, the linter scans the opened files and highlights those lines with issues detected.

    The PROBLEMS tab should also show all issues detected for easy navigation.

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

  • IntelliSense (Experimental)

    Once configured properly, suggestions would be provided when pressing / after lines such as - :doc: to help input file path much quicker.

Notice: This feature is disabled by default. Check out the steps to configure sphinx support.

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.

IntelliSense

The IntelliSense support is provided by the new reStructuredText Language Server.

vscode-restructuredtext's People

Contributors

adimasci avatar brettcannon avatar denisvm avatar dlech avatar fathyb avatar lextm avatar road42 avatar rtgoodwin avatar schlamar avatar xin053 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.