I created multiple project template and rename .vstemplate files. And I created VSIX extensions.
screenshot
But I want to show only multiple project template. How can I hide other sub templates ?
You can keep your sub templates hidden, by setting the Hidden element in your sub template's .vstemplate to true. See the following doc topic for reference:
Hidden Element (Visual Studio templates)
Related
I'm working on a React project in Visual Studio Code. For some reason, the subdirectory structure that I just added displays subdirs via slashes () instead of rendering the subdirs in a treeview:
Any idea why VS Code would do this? Other subdir structures in the project display as normal treeviews as expected
Probably because those folders are empty and contain empty folders also
Try adding files to them it won't display that way anymore
NB: There's no big deal with that display
Now if you want it to display normally:
Select Preferences,then Settings. Then Search for "compact folders" and uncheck the checkbox
Using Visual Studio Code, how can I sort files by type when I open folder view?
To sort the files of the explorer view by type, add the following option to your user settings (settings.json):
"explorer.sortOrder": "type"
This feature is available since vscode release 1.15
search "explorer" in settings page and you can change the control of sorting order there.
Seems that from version 1.67 there are new values for this setting, for example, to support file nesting like this one:
"explorer.sortOrder": "foldersNestsFiles"
There does not appear to be a way to specify a "full extension" to sort by though:
app.component.css
grid.component.css
app.component.html
grid.component.html
app.component.ts
grid.component.ts
app.model.ts
grid.model.ts
I would like to have an additional feature in Visual Studio Code - essentially the "Scope to This" from the full Visual Studio Solution Explorer.
It is basically a context menu (right click) entry in the File Explorer of Visual Studio Code - which then should limit which files and folders are displayed.
Is such a thing possible with a Visual Studio Code Extension?
I never built an extension for VS Code before and would like to know if this is even possible or if I would just waste my time.
According to the API docs, there is no way to filter visible files in the Explorer like it can usually be done with the files.exclude setting. However, it is possible to open another folder with the workspace.openFolder complex command. This will probably also close all opened editors, and forget about the original workspace root path.
Your extension would need to remember the initial root path and opened editors to undo this "Scope to This" menu, and reopening everything every time could cause quite some lag.
You can't customize the normal explorer view.
However, you can do something like this with custom views. It allows you to create a new explorer view that can list what you want and behave as you want.
For an example implementation, check the vscode-code-outline.
If you can add a context menu entry separately too.
I'm using Eclipse as default IDE. In Eclipse there is a visual editor available to insert HTML tags in your *.html files. I'm using a lot of DOJO in my current project and want to add these widgets to the palette view. I assumed that there would be an option to add custom widgets/tags easily(palette's contextmenu or something), but this is not (yet) implemented. Does somebody knows if there is an option to add custom widgets in Eclipse?
I've already Googled a lot and didn't found where I am looking for.
ps. I don't want to use other editors(Maqetta, WDT-plugin, ...).
We are using a Visual Studio extension to do some checks on a custom XML file. Errors that are detected are displayed in the Error List.
Is it possible to extend the context menu of an errortask item in the Error List of Visual studio? We want to add automatic correction functionality to our extension.
There was an example of adding custom menu items for FxCop:
http://vsxexperience.net/2011/06/28/extending-fxcop-rules-with-fixing-ability/
You can follow the sample code in:
http://stylecopfixer.codeplex.com/