[Question] Little help with VSCode API #232
Replies: 3 comments
-
|
Tried: |
Beta Was this translation helpful? Give feedback.
0 replies
-
UpdateIt would be nice to be able to enjoy VSCode API. In the mean time, I achieved it with good 'ol powershell: Powershell code: $LayerPath = Read-Host -Prompt '1/2: Enter Layer Path (e.g., admin-layer)'; $PageName = Read-Host -Prompt '2/2: Enter Page Name (e.g., index or users)'; $Cwd = Get-Location -PSProvider FileSystem | Select-Object -ExpandProperty Path; $TPL=(Get-Content -Path \"$Cwd\\nuxt-page-template.txt\" -Raw); mkdir -Force \"$Cwd\\src\\$LayerPath\\pages\" ; $TPL | Out-File -Path \"$Cwd\\src\\$LayerPath\\pages\\$PageName.vue\" -Encoding UTF8Quick command: "command": "$LayerPath = Read-Host -Prompt '1/2: Enter Layer Path (e.g., admin-layer)'; $PageName = Read-Host -Prompt '2/2: Enter Page Name (e.g., index or users)'; $Cwd = Get-Location -PSProvider FileSystem | Select-Object -ExpandProperty Path; $TPL=(Get-Content -Path \"$Cwd\\nuxt-page-template.txt\" -Raw); mkdir -Force \"$Cwd\\src\\$LayerPath\\pages\" ; $TPL | Out-File -Path \"$Cwd\\src\\$LayerPath\\pages\\$PageName.vue\" -Encoding UTF8" |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment








Uh oh!
There was an error while loading. Please reload this page.
-
👋 Hello thanks for this extension, life saver!!! 🔥🎉
I need a little help with VSCode API.
I'm using Nuxt (Vue) and new to create some templates/schematic like pages, components, server api, etc.
But I don't know how to use the VSCode API from this extension.
https://code.visualstudio.com/api/references/commands
I have this:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions