1,937 questions
0
votes
0
answers
16
views
configure autocomplete snippits in nvim for .hbs file
How do I configure autocomplete snippets for .hbs (Handlebars) files in Neovim using the NvChad framework?
I'm using Neovim with the NvChad configuration framework, and I want to enable autocomplete/...
0
votes
0
answers
17
views
How do you do multiple regex replacments in an UltiSnips snippet in vim?
I am trying to create a snippet for a LaTeX section that automatically fills in the label. I'd like the label to replace special characters and convert uppercase characters to lowercase characters. I ...
-1
votes
0
answers
31
views
Eclipse snippets are not being saved in workspace
This question refers to an installation of Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components), version 2024-12 (4.34.0), build id 20241128-0757.
In one of my ...
1
vote
1
answer
72
views
Using a bash terminal to list gitlab "snippets"
I'm trying to list "snippets" but everything I've found so far only refers to listing repos.
In gitlab there's a submenu, "snippets", where we occasionally need to pull new code ...
0
votes
0
answers
33
views
Need Help Adding a MailerLite Popup Form to My Next.js App
I'm trying to add a MailerLite subscription form (a popup triggered by a button) to my Next.js app, but I just can't get it to work.
This is my first time integrating a universal code snippet in a ...
4
votes
2
answers
191
views
How can I use predefined code snippets outside of code chunks in Quarto within RStudio/Posit?
I'm working on a Quarto document in RStudio/Posit where I frequently need to insert recurring formatting code. I've set up some custom code snippets in RStudio that work perfectly inside code chunks. ...
0
votes
1
answer
30
views
How to key bind a snippet in Sublime Text?
I had some trouble figuring out how to add a Key Binding to my new Snippet in Sublime.
This answer may save some people some time...
0
votes
1
answer
38
views
VS Code snippet - how to get the relative_filepath without the file extension
How can I get the relative_filepath without the extension and backslash change ?
I found two transforms:
"${RELATIVE_FILEPATH/[\\]/\//g/}"
"${RELATIVE_FILEPATH/(.js)//}"
If the ...
1
vote
0
answers
42
views
WPForms Refresh Page
Upon integrating the snippet into the File Upload WPForm for images and videos, it successfully initiates a page refresh to reset all form values and present a confirmation message upon submission. ...
0
votes
1
answer
34
views
Can you add a comma to a VS Code Snippet placeholder option?
I want to create a VS Code snippet that uses the choices feature:
"Fool's Dart Types": {
"scope": "dart",
"prefix": "foolsTypes",
...
0
votes
0
answers
32
views
How to reference custom file location for snippets in Visual Studio Code. System wide. Not Project specific
Goal: To find a VSCode setting that I can update to have VSCode reference a custom file or folder location to store and save my code snippets. System wide and not project specific.
OR find a way to ...
1
vote
1
answer
36
views
How to open dropdown from separate button in stackoverflow code snippet
Running code snippet using "Run code snippet" button and clicking "Open menu" button does nothing. It should open menu.
Menu is defined in other place in DOM and display is set to ...
0
votes
0
answers
16
views
VS Code Snippet Confusing Transformation
I don't understand why this works:
"test": {
"prefix": ".test",
"body": [
"${1/(.*)/${1:/downcase}/}",
"${2/(.*)/${1:/downcase}/};...
2
votes
2
answers
54
views
How would I add an "extended" tabstop in snippets?
I'm trying to make a snippet with multiple choices and I need only one of the choices to have a subset of choices after selecting it.
For Example:
"Basic Furniture": {
"prefix":...
0
votes
0
answers
27
views
is it possible to get support for more advanced snippets than default in Visual Studio?
I'm creating some snippets for both VS and VS Code, and I would love all the features from the VS Code ones in VS. And the ability to define file extension types instead of just language. Is it ...