Skip to content

A VS Code extension to generate ascii tree strings easily

License

Notifications You must be signed in to change notification settings

Rolaka/ascii-tree-generator

Repository files navigation

ascii tree generator

Build Status

A VS Code extension to generate ascii tree of directories or format selected text to tree strings.

Usage

This extension provides convenient way to generate ascii tree strings for directory in workspace explorer. Besides, you can select text in editor and format it to tree strings easily.

Generate Tree Strings for Directory

Right-click on Explorer directories, click Generate Tree Strings for Directory menu:

Generate Tree Strings for Directory

Format Text to Tree Strings

Write simple tree lines in certain syntax (see example below), select these lines, right-click on text and click Format Text to Tree Strings menu:

Format Text to Tree Strings

The following kinds of line syntax is supported to correctly format to tree strings:

  • lines started with indent(space or tab) characters:

    public
    dist
      index.d.ts
      index.js
    src
      index.ts
    
  • line started with hash(#) symbol

    # public
    # dist
    ## index.d.ts
    ## index.js
    # src
    ## index.ts
    

They should be formatted to:

.
├── public
├── dist
│   ├── index.d.ts
│   └── index.js
└── src
    └── index.ts

Configuration

Not available yet...

Issues & Contribution

Please feel free to submit issues if you have any questions. Contribution is also welcomed :)

About

A VS Code extension to generate ascii tree strings easily

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 91.2%
  • HTML 8.7%
  • JavaScript 0.1%