Giter Club home page Giter Club logo

doc-tab's Introduction

Doc Tab

Edit the doc comments in a new tab.

"Doc Tab" is a Visual Studio Code extension that allows you to edit the doc comments in a new tab.

The Problem

Editors like VSCode support markdown preview for JSDoc / TSDoc, but it's often challenging to edit, format, and indent it within the comment block. This extension is designed to assist in editing doc comments in a new tab, providing the benefits of specific language features such as Markdown's syntax highlighting, intelligence, linting, and formatting.

Usage

  1. Choose or position the cursor within the documentation comment block.
  2. Access the command palette:
    • Ctrl+Shift+P on Windows/Linux
    • Cmd+Shift+P on macOS
  3. Enter Doc Tab: Edit Comment In New Tab and hit Enter.
  4. Modify the documentation comment in the new tab.
  5. Close the tab without saving to discard any alterations.
  6. The changes will be applied to the documentation comment block. ๐ŸŽ‰๐ŸŽ‰

Recommended Workflow

  1. Format the code (using eslint, prettier, etc.).
  2. Edit the documentation comments in a new tab. It's advisable to preview while editing.
  3. Format the code in the new tab.
  4. Close the tab without saving.
  5. Format the code once again.
  6. Reformat the documentation comments (using Rewrap).

๐Ÿ“ฝ๏ธ Youtube Demo

Recommended Extensions for Combined Use

License

VdustR ยฉ MIT

doc-tab's People

Contributors

vdustr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  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.