Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mariasolos/add-multifile
Create custom multi-file items in VS Code
https://github.com/mariasolos/add-multifile
multifile typescript vscode-extension vscode-settings
Last synced: about 1 month ago
JSON representation
Create custom multi-file items in VS Code
- Host: GitHub
- URL: https://github.com/mariasolos/add-multifile
- Owner: MariaSolOs
- License: mit
- Created: 2022-11-03T05:41:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T01:11:57.000Z (over 1 year ago)
- Last Synced: 2024-10-26T02:29:59.453Z (3 months ago)
- Topics: multifile, typescript, vscode-extension, vscode-settings
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=mariasolos.add-multifile
- Size: 29 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Add Multi-File
Create custom multi-file items in VS Code, with variable name support!
## Configuration
1. Define the templates in your [`settings.json`](https://code.visualstudio.com/docs/getstarted/settings) file. All templates need a name and their corresponding items, together with an optional description.
- Variables are supported using `$` followed by a number (so all occurrences of `$N` will be replaced by the `N`th argument you provide during item creation).```json
"addmultifile.templates": [
{
"name": "React Component",
"description": "Item for a React component and its styles",
"items": ["$0/$0.tsx", "$0/$0.styled.ts"]
},
{
"name": "Test suite",
"description": "Item for a unit test",
"items": ["test-$0/$1.ts", "test-$0/$1.test.ts"]
}
]
```2. To create a new multi-file item, right click on the respective folder (just as you would for creating a new file or folder) and select "New Multi-File Item...":
3. Select the item you want to create (if you only configured one template, it will be used by default).
4. If applicable, input the template's arguments, separated by spaces.
5. Done! Your custom multi-file item should be created :)
## Author
[Maria José Solano](https://www.maria-sol-os.com/) 🍄
## License
[MIT](https://choosealicense.com/licenses/mit/)