qcz / vscode-text-power-tools

Text Power Tools extension for VS Code
https://marketplace.visualstudio.com/items?itemName=qcz.text-power-tools
MIT License
91 stars 14 forks source link

Feature Request - insert file #53

Open aubreyz opened 1 year ago

aubreyz commented 1 year ago

Thanks for writing this great extension. Can I make a suggestion that would turn it into a killer.

Surprisingly there is only one VS-code extension for inserting the contents of another file into the current editor at the insertion point. That extension has a major flaw, isn't great and is not being updated.

This is a really useful thing to be able to do, and might easily be done by extending the existing Text-Slots, and should have a command panel slot of its own. Many people combine files in different orders (for example to add a prebuilt bootstrap component into HTML), or to add an HTML header. These are often large and the snippets mechanism is not very well suited to this. It might also be used as a template to insert a whole file for example a page template.

I'd make it default to the last used folder (so templates could be stored there), or a per workspace folder could be in settings.

qcz commented 1 year ago

@aubreyz Just a notice that the implementation of this feature is in progress. It works nicely on Windows, but I still have to test other OSes and the web version to make sure it works properly.