Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
2 answers
60 views

Positron (VS Code) snippets to insert code region

Similarly to this question, I would like to use HyperSnips to create a code region. This would look like the following : # ...
0 votes
3 answers
128 views

Positron (or VS Code) snippet to insert dashes up to a number of characters

I'm transitioning from RStudio to Positron, and one thing I'm missing about my RStudio setup is an addin that I had installed. I got the idea from Mine Çetinkaya-Rundel, which is to add dashes from ...
0 votes
0 answers
32 views

Parse vscode code snippets files as jsonc (with prettier)

Using prettier , the code snippets files in vscode end upp having red lines because those files are json with comments. The language mode for those files in vscode is set to "Code snippets", ...
0 votes
0 answers
27 views

VScode snippets tab completions does not work after (beyond) some column numbers at current line

I am using VScode to write latex. I found that the tab completions (settings below, I make it works for snippets without choosing from suggestions) for snippets I defined won't work after some certain ...
0 votes
1 answer
63 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 ...
0 votes
2 answers
90 views

When transforming a vscode snippet variable, how to substitute a group with nothing?

I'm making my own "toggle block comment" keybinding for python, using ''' instead of """ for delimiters. This is the best I could come up with to mimic the existing keybinding ...
0 votes
1 answer
28 views

When defining a snippet in VS Code keybindings.json, how do I have a portion of text selected after keybind usage?

I am switching over to VS Code and trying to understand how to define keybindings. I currently have this as my first attempt: { "key": "F8", "command": "...
0 votes
0 answers
16 views

VS code snippet populate var with value of another var

Is it possible to set a variable within a code snippet to the value of another already defined variable? Take this example, I want the tab order to start at the first 1,ドル this way I'll get the auto ...
0 votes
1 answer
67 views

In VS Code, is there a way (or extension) to run a command ( I.E. 'editor.action.insertSnippet') on each line of text that is selected in the editor?

I have a snippet called Quick Log Write-Host defined like this: "Quick Log Write-Host": { "prefix": ["quicklog"], "body": [ "Write-Host ...
0 votes
1 answer
60 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
1 answer
53 views

While searching in VS code, how to avoid unnecessary folders and files like obj/debug and get the project related files only [duplicate]

While searching in VS Code, I want to search and get the files in my project. instead of that, its showing a lot of files, which is irrelevant. Example: if I search "main," I expect to see ...
1 vote
1 answer
121 views

VS Code end snippet by copying text or selecting text

I would like to modify my VS Code snippet so that after it completes, I have either copied a piece of the text output, or have that text selected. I have the following snippet currently: "new ...
0 votes
0 answers
85 views

I dont have intellisense in django while im using vscode

The Problem: My VS Code doesn't have IntelliSense for the following: settings.py: no IntelliSense; when importing settings from django.conf: from django.conf import settings a = settings. # no ...
0 votes
1 answer
34 views

Conditional insertions in VS Code snippet transformations

I want to create a VS Code snippet for Markdown files. The snippet should take the name of the file (e.g.: 12.3-Test_me.md) and transform it to something like Test Me with neither the leading numbers ...
0 votes
1 answer
43 views

My regex for a VS Code Snippet is not working

I have some files with names starting with core- and following one or more words separated by hyphen, like this: core-query core-query-pagination core-query-pagination-numbers I'm creating a VS Code ...

15 30 50 per page
1
2 3 4 5
...
30

AltStyle によって変換されたページ (->オリジナル) /