code-snippets Questions
1
I would like to modify the default code snippets for C++ in Visual Studio Code. I've found a similar question here, but they actually show how to create your own snippets - and not how to modify th...
Soloist asked 8/7, 2020 at 19:27
5
Solved
I tend to use a lot of line breaks in my code like the following:
# Data =========================================================================
Where the entire comment is always 80 character...
Glasser asked 17/9, 2015 at 15:11
4
Im using sublime 2 with Emmet plugin. Is there a way to write a comment with speed coding that would produce me something like that:
<div class="container">
Lorem ipsum
</div> <!--...
Hudgins asked 8/9, 2013 at 18:57
4
Solved
I have installed the C# extension in VS Code. The problem I am having is, after using a code snippet prop, Intellisense no longer suggests variable types. This happens with other things like ctor a...
Wold asked 15/4, 2019 at 5:41
4
Where are the default Emmet settings in Visual Studio Code (v1.15.1)?
I'm looking for the file that makes Visual Studio Code expand the Emmet HTML abbreviation ! into:
<!DOCTYPE html>
<htm...
Silken asked 3/9, 2017 at 0:28
3
Solved
I am trying to get the file current directory in a snippet for visual studio code.
VSCode has a variable: TM_DIRECTORY, which is the fullpath.
eg:
{folder: "$TM_DIRECTORY"}
would be replaced b...
Deathwatch asked 21/1, 2018 at 10:53
1
Solved
If I have a question about a p5.js sketch, how can I include my code in the question such that people looking at the question can quickly test my code to see what I'm trying to do or what is wrong?...
Persist asked 6/5, 2021 at 1:12
3
Solved
I've recently started using Atom. One problem I've run into is that there are too many / ambiguous snippets defined for Ruby. This makes tab completion worse, as you sometimes get a bit of irreleva...
Hedveh asked 23/9, 2014 at 8:4
4
Solved
TL;DR
I am trying to manually trigger ace editor snippets through a function call, rather than the conventional approach (keyboard keys).
Explanation
I need a function that takes in the editor a...
Navarrete asked 28/9, 2014 at 20:21
0
In Visual Studio, I would like to update the fullprop snipped to automatically convert the field name according to property name: (and so only enter "property name" & "type"...
Slobbery asked 28/3, 2021 at 9:36
2
Solved
I want to embed a snippet code at my LinkedIn article, like that:
That image is from Gitlab snippets (https://gitlab.com/snippets/1841785). Is there some way to render its content in the LinkedI...
Zucchetto asked 3/4, 2019 at 1:38
7
Despite the new features in HTML5, the use of rich snipers, microdata and what not...I still can't find a proper way to get credit for developing a page/site.
Of course, you have <meta name="au...
Hoi asked 6/10, 2013 at 1:53
6
Solved
I would like to include a snippet in a template but only if the snippet file exist. Is there any way I can do it?
Now I'm just using:
{% include 'snippetName' %}
But this throws the error:
Liq...
Mileage asked 2/2, 2013 at 22:37
2
Solved
For some unknown reasons, my VS code no longer shows the default code snippets for Python.
Below is what I see when I type for in the editor (to write the for loop)
I'm expecting to see something ...
Ponceau asked 9/2, 2021 at 7:22
3
Problem: We use github actions workflow for CI and we have many github repositories. I need to be able change everything repeatable for every repository at once.
Is it possible to use in github a...
Colquitt asked 5/3, 2020 at 11:17
1
Solved
I have a code snippet in VS Code, looks like this
"JS arrow function": {
"scope": "javascript, typescript",
"prefix": "af",
"body": [
...
Embrocate asked 24/1, 2021 at 14:5
6
Does anyone know a fast median filter algorithm for 16-bit (unsigned short) arrays in c++?
http://nomis80.org/ctmf.html
This one seems quite promising, but it only seems to work with byte arrays....
Crossway asked 26/4, 2012 at 18:1
3
I need to include the name of the file that the snippet is being inserted to the output.
I looked into Code Snippet Functions (http://msdn.microsoft.com/en-us/library/ms242312%28v=vs.80%29.aspx) a...
Tarnation asked 7/3, 2014 at 20:40
4
Anyone knows how to assign key shortcut to specific code snippet?
I would like to assign for instance CTRL+K,CTRL+J to a #region snippet.
Therefore by able to:
select text,
press CTRL+K,CTRL+...
Capo asked 25/4, 2012 at 9:4
3
Solved
I'm new to VSCode and I want to test it to compare with my sublime text configuration. I want to create a very simple snippet that allow me to write ruby code <%= %> when I only press < ke...
Remedial asked 8/12, 2016 at 9:17
2
I am writing some JavaScript snippets for VS Code, and when I add the one for an event listener, there are a number of pre-defined prefix allocations relating to other pieces of code. I would like ...
Sonar asked 17/1, 2018 at 15:6
3
I imported a snippet, and I want it gone. Problem is that the Snippet Manager has the Remove button grayed out when I go in and try to remove it, any ideas?
Fallen asked 13/11, 2012 at 21:59
6
Solved
This is such a simple question but I can't find any documentation besides the readme.
How can I have multiple custom snippets in Atom Editior:
For example I have this in my snippets.cson right no...
Bataan asked 28/10, 2014 at 18:28
1
Solved
I would need something like this. Once I create a folder within a project. A React Project for example. I could select that folder and run some kind of macro or series of actions that would do this...
Myrticemyrtie asked 20/9, 2020 at 15:20
4
Solved
I want to use code snippets in VS Code. But when I type, for example, for in javascript file, the IntelliSense doesn't suggest snippet "for-loop" - I need to manually scroll the dropdown ...
Brimful asked 16/6, 2016 at 15:35
© 2022 - 2024 — McMap. All rights reserved.