VSCode custom snippets list in activitybar/sidebar - extension recommendation? - visual-studio-code

Dear fellow VSCode users!
My collection of custom snippets has become rather vast lately, with all of documentation writing that I have to do. And it's becoming kind of difficult to remember all the shortcuts.
I know I can search for snippets and browse their list via the command palette, but it requires quite some extra typing and/or clicking.
Is there an existing extension that would add a new activity bar icon and provide a list of all user-defined snippets in the sidebar, allowing one to simply click on the desired snippet and thus insert it?
I imagine I'm not the only person on the planet to desire such a feature, but I honestly can't seem to be able to find it searching the Marketplace or using Google.
Thanks for all your suggestions.

Just made an extension. Snippets View. Tested only on Windows.
It's not complete yet, but has basic functionality...

Related

Todo file in vs code. how to use it

hi i created a file in vs code named "todo" and it got a checkmark icon. I thought that this could be used somehow, but didn't find any information about it. what does it look like. how it can be used?
I was wondering exactly the same thing! I haven't been able to find any native functionality of VSCode that deals with ToDo files, however I did find ToDo Tree, a neat looking extension which will provide highlighting for any todo/bug(etc) comments, and also group them together in the activity bar.
Find more info on Thomas Venturini's blog post
It is just an icon indicating the file type.
VS Code doesn't have any native features for doing anything special with TODO files.
There may be extensions on the marketplace that could do something with the format.

Adding the run-code option to a new language in VSCode

I'm currently writing my own language and I'm at a point where I would like to publish it to the VSCode-Marketplace so people can test it.
I have written a language extension and a syntax highlighter with the Yeoman-Generator and now want to merge it with my executable file that launches the interpreter, so that a file can get interpreted after clicking the run-code button.
I now have checked multiple articles, like:
How to add a run button in visual studio code? - StackOverflow
How to define or support a code language on Visual Studio? - StackOverflow
Debugger Extension Guide - VSCode API
However, I haven't found anything useful.
Currently, the code-runner displays the following error, when clicking on run, or pressing the shortcut:
(Code language not supported or defined.)
But even after a lot of browsing Google for adding new language support to the code-runner, I found absolutely nothing helpful.
(See this page, idk what Settings/Preferences they are referring to!?)
I also was not successful with tasks, as they don't seem to connect to the run-buttom or debug-button in any way.
My question is: How can I make the run-button execute a custom bash-command, when a file in my language is opened?
Okay, I finally did it.
For anyone wondering:
You have to go to the settings and type "code-runner" into the search bar.
Scroll down a little, and you should find the code runner-executor map.
Click on the "edit in settings.json" button.
Now a .json-file should've opened. There are two possible scenarios: Either, there is a json-object called code-runner.executorMapBy... or not.
If there is none, type code-runner.executorMapByFileExtension and let autocomplete do the job.
If the json-object exists, add the file-extension and a bash command that executes your compiler/interpreter. It gets automatically executed in the directory the program-file lies in.
Now still dont know, how to include the settings in my extension, but that was already a big step. Further help is still appreciated!
There is an open source extension called code runner, you can check source code there.

VS code strikethrought suggestions

I'm looking for a solution.
When I type some CSS inside VSC, the editor show me a list of possible choice. Then I select the desire one and the editor show me again a list of possible properties, but between all this properties their are some old one that are still use in web development if we want to make a website compatible with older browser.
I figure that some suggestion in VSC are display with strikethrought, so I'm looking to a solution to apply this to my personal snippets.

Snipmatch Code Recommender plugin does not work for custom repository

I just created a repository to share our team snippets, and although everyone can see, update, and push new snippets, none of them appear on the Java Editor auto complete.
For testing purposes I created a new snippet (arrayremove) copying the configuration from an existing one (arraymerge).
What am I doing wrong? Am I missing something? Or is this a bug?
Quick Answer
You have to press CTRL+ALT+SPACE to start the Snipmatch snippet search. Snipmatch snippets will not appear in the normal content assist popup.
Background
As one of the developers of the Code Recommenders Snipmatch plugin, let me give you a little bit of background information.
Snipmatch uses a separate shortcut to trigger a search to allow more intelligent snippet searches. For example, the search string may contain spaces and will find keywords defined as an Extra Search Term or as a Tag. Or you can use wildcards * in your search string.
You can change the shortcut on the Preferences > General > Keys preference page. Look for the Snipmatch Snippet Completion binding.
For more information, have a look at the Snipmatch manual.
if you need further support with Snipmatch, you can also contact me directly or go to the Code Recommenders forum.

Is there a way to create templates for text files in Eclipse?

In Eclipse, I really enjoy being able to create templates for things I commonly write in Java and XML. While there is some room for improvement, templates have proven to be quite the time saver. Today I was documenting some notes in the release notes. We have a specific format that we write said release notes in. I thought it would be handy to write a small template so that I could easily insert most of the boiler plate text when I amend the notes. So I dug around the eclipse settings and didn't see anything for plain text files. I googled around and also didn't see anything.
So is what I'm wanting to do possible in Eclipse? Is there a plugin I would need to enable such a feature?
I assume the closest you can get is using Snippets
Add the view by clicking Window -> Show View -> Snippets. In that view, right-click and select Customizeto create custom snippets. You can now add those snippets in your textfile by double-clicking them.
Maybe there is also some shortcut feature I didn't find yet...