Skip to main content
0 votes
0 answers
16 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", ...
Galivan's user avatar
  • 5,368
0 votes
0 answers
21 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 ...
Yuanhao JIANG's user avatar
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 ...
이병옥's user avatar
0 votes
2 answers
77 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 ...
Paulo Modulo's user avatar
0 votes
1 answer
24 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": "...
Nicholas's user avatar
  • 2,060
0 votes
0 answers
15 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 ...
David B's user avatar
  • 13
0 votes
1 answer
57 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 ...
fmotion1's user avatar
  • 541
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", ...
Code on the Rocks's user avatar
0 votes
1 answer
38 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 ...
Dev's user avatar
  • 329
0 votes
1 answer
85 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 ...
Robert Mark Bram's user avatar
0 votes
0 answers
58 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 ...
Matin Abedini's user avatar
0 votes
1 answer
25 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 ...
James Newton's user avatar
  • 7,144
0 votes
1 answer
30 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 ...
Germán Freixinós's user avatar
1 vote
1 answer
60 views

VSCode - Intellisense not working in (.jsx React)

I have problem when using JSX the autocomplete didn't show on VSCode when I want to produce event.preventDefault() but didn't show any javascript autocompletion I already enabled the JavaScript and ...
flyingduck92's user avatar
  • 1,654
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 ...
NerdNoob's user avatar

15 30 50 per page
1
2 3 4 5
30