https://github.com/mnvr/vscode-mextn
a lil vscode extension
https://github.com/mnvr/vscode-mextn
Last synced: over 1 year ago
JSON representation
a lil vscode extension
- Host: GitHub
- URL: https://github.com/mnvr/vscode-mextn
- Owner: mnvr
- License: mit
- Archived: true
- Created: 2023-07-23T11:59:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-22T04:31:34.000Z (over 2 years ago)
- Last Synced: 2025-02-24T14:19:05.721Z (over 1 year ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
An (unpublished) lil VSCode extension to create a new file in the current
workspace with a name generated from a template.
I have bound it to a keybinding
{
"key": "cmd+m cmd+n",
"command": "mextn.new"
},
so I can just use ⌘ M ⌘ N to create a new file quickly. It'll reuse the
extension of the most recent existing file.
> There is also support for picking the file extension based on the
> defaultLanguage in workspace settings. The list of file types it supports this
> way can be manually modified in `src/extension.ts`.
## Installing
Install dependencies using
yarn
Then, you can run then this extension directly from source by doing
yarn dev
This creates a temporary .vsix binary file and installs it to your local VS Code
instance. After making changes in the code, you can re-run `yarn dev` to update
the installation; in this case, remember to use the VS Code "Developer: Reload
Window" command after running `yarn dev` (this seems to be needed to get the
running VS Code window to pick up changes).