Questions tagged [Code templates] (18)

1
answer

Is it possible to paste snippets with conditions in VSCode, as in Sublime Text?

Good time! Is there a possibility in the VSCode to insert a snippet of keybinding only in the case if before the insertion location, there is no particular symbol? I want when typing "{" in CSS/SCSS files automatically forming the desired structure. That is, write: .block{ Get: .block { | <- cursor } This is no pro...
mertie.Cassin asked April 8th 20 at 10:31
1
answer

Is there a portable program for storing snippets of code without reference to the editor/IDE?

Need a portable solution for storing pieces of code (under windows) without reference to editors and IDE. Because you have to work on different machines and to maintain synchronization between them is sometimes impossible. Online storage is also not suitable, because sometimes where there is an Internet in principle. All of...
Marley asked April 3rd 20 at 23:38
0
answer

Why inhibit the VSCode in snippets in html file?

Hello. I decided to try to add a couple of elements on the page popular with my website. Went to the desired page using Google Chrome, clicked right click, Save as and saved the html file. Opened it in Visual Studio Code, went to the line, write "a", hit Tab, expecting Emmet, deploy it to the tag. But first, on the bottom l...
Hassie.OReilly asked March 20th 20 at 12:23
0
answer

How to make the first snippet in the list (vs code)?

Made me the snippet in a drop-down completion list is not the first. You can fix this?
Judso asked March 17th 20 at 10:18
1
answer

How to create html snippets in vs code (ready bootstrap template)?

Prompt people kind how to create html snippets in vs code (ready bootstrap template). Each line tried to circle "" as given in the example code in vs , but in the end it turns out like this
tommie_Mohr17 asked March 14th 20 at 15:14
0
answer

Vs. Code: why don't the snippets in the javascript files?

The VS version 1.27.2 Code Created a global file snippets, has created a dozen of them, everything works like I need except for one problem: in files *.js snippets are not working. An example of a snippet:"insert.nbsp": { "scope": "html,php,javascript", "prefix": "nb", "body": [ "&nbsp;", ], "description": "Mnemonic...
jaquelin_Lowe42 asked March 12th 20 at 00:10
3
answers

The list of special variables in Netbeans IDE for the section of Code Templates?

Prompt, where I can see the whole list with explanations (${selection}, ${cursor}, etc)
cielo asked October 10th 19 at 03:25
12
answers

Where to store code?

A common question, but I have reason to ask it. Half a year ago, I built a small prototype for the storage and use of their developments. The site was simple, fast and convenient (my opinion). Gradually, there were active users, has been improved and extended functionality, fixed bugs. Question: do we need such a site for...
brennan_Howe asked October 3rd 19 at 17:25
1
answer

Is there a convenient program for storing snippets with parameters?

Is there a convenient program for storing snippets with parameters? What I have in mind. There is for example the snippet %var% myfunc (%, var% t ) { return t; } Is there somewhere I prescribe var = int get int myfync( int t ) { return t; } Usually it's just snippets chunks of text, and I would like to add such parameters. ...
Timmothy35 asked October 1st 19 at 02:24
1
answer

What is the best program for snippets, templates, code blocks?

Looking for a program for structuring and populating the code. In sublime text snippets , such as html enter press tab and get ready to deployed code. Similar functionality is in the program punto switcher , but I'm looking for more "wide" option. Should set the key phrases to get the code to be multicursor , the place whe...
Layne_Gutkows asked September 21st 19 at 05:58