Questions tagged [vscode-snippets]
For issues relating to the creation, use, and maintenance of code snippets in Visual Studio Code
vscode-snippets
424
questions
0
votes
0
answers
14
views
VS Code Custom Syntax Not Highlighting
I made a vs code syntax for calcscript but I cannot seem to get the hightlighting or the autocompetion working for my code.
This is my package.json:
{
"name": "calcscript-syntax-...
0
votes
0
answers
11
views
How to convert kebab-case filename to pascal-case component name in vscode-snippets
I am making custom vscode-snippets and stumbled on converting kebab-case filename to pascal-case component name. Read vscode snippets documentation several time and still don't understant how to do it....
0
votes
2
answers
39
views
Run 2 transforms on 1 snippet in VSCode
I want VSCode to generate my classname based on my filename:
Filename: test-class-file.php should become: Test_Class_File
I found the following examples:
"${TM_FILENAME_BASE/[-]/_/g}" ...
2
votes
1
answer
64
views
How to get all active snippets for a given language programmatically in extension?
I'm developing an extension for VS Code that let's you create CodeLenses by writing a comment like that:
// Code-Lens-Action insert-snippet <SNIPPET_NAME>
...that inserts code snippet with a ...
0
votes
1
answer
26
views
How do I get my VSC folder into my Wix website?
I created a program on Visual studio code for text to speech and am trying to implement it into my Wix website. In order to add a custom code section on Wix, you need a server url. However, I am ...
0
votes
1
answer
28
views
how to change the directory of vs code snippets
snippets are placed in a folder named appdata\roaming\code\user\snippets (on windows PC )
How do I change that folder?
Would like to place visual studio code snippets in another folder
i want to keep ...
0
votes
0
answers
27
views
Two transforms on TM_SELECTED_TEXT
I need a vscode snippet to transform selected text.
I have text like:
Teaching Strategies:
Use advance organizers at the beginning of lessons to provide a conceptual framework.
...
1
vote
1
answer
67
views
Multiply a variable in VSCode snippets
How can I multiply a variable in VSCode snippets?
"Print to console": {
"scope": "jade, pug",
"prefix": "fimg",
"body&...
0
votes
0
answers
68
views
Terminal is not opening in visual studio code
The terminal process
"C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe" terminated with exit code: -65536.
I am geting only this above message can anyone help me..
I want help ,...
0
votes
1
answer
36
views
VS code extension function not being called
I have decide to try develop my own vs code extension
A code snippets for typescript/angular
I have my first snip Forloop.snippet
const ForLoopSnippet = 'for (let {{iterator}} = {{start}}; {{iterator}}...
0
votes
0
answers
58
views
VS Code react-bootstrap quick import and snippet not showing
Why is my react-bootstrap snippets suddenly not showing? I was working on a project with React JS and the react-bootstrap element suggestions are displaying fine. However just recently, it stopped ...
0
votes
1
answer
105
views
How to setup HyperSnips Extension properly in VSCode?
I try to use HyperSnips but when I typed the snippet it won't be showed.
Another thing doesn't work when I typed Command + Shift + P and run HyperSnips: Open Snippets Directory, this is what I got
...
0
votes
0
answers
25
views
How do I remove and replace line breaks from my clipboard while using snippets in Visual Studio Code?
I am planning to replace every line break in my clipboard with a space, followed a vertical bar and then another space.
For instance, if my clipboard has the following text:
My
Clipboard
Content
the ...
0
votes
1
answer
29
views
how to define "\n" as enl or anything in vscode cpp.json user snippet/ boilerplate
i am trying to define "\n" in my cpp.json file which is the boilerplate for cpp and when i define it like "#define enl '\n'", and use it in my code, instead of getting #define enl '...
2
votes
3
answers
119
views
Auto delete old posts using Snippets for special category
Dears,
I want to delete the old post automatically without using a plugin and the Snippets will be the choice, I want to delete any post older than one day from a special category an using this ...