My project vscode-file-tree-to-text-generator will give you tha ability to generate file / directory trees for different targets directly from you Visual Studio Code explorer. It supports the following formats out-of-the-box:
Furthermore it allows you also to create custom directory tree output formats or changes the defaults to satisfy your custom needs.
Check out the official documentation on Github or Visual Studio Marketplace.