speech to text in visual studio - visual-studio

I want to say for example.
public int a
and visual studio write it down automatically.
I don't want to type.
is it possible?
I search for it on google and looked at extensions but could not find my answer.

Related

Is there a way to extract comments from code files with DTE (Visual Studio Automation)?

I want to extract comments from code files in a Visual Studio extension. Is there a way to do it using Visual Studio Automation without having to parse code text myself?
PS: Roslyn is not a choice, because I'm not restricted to C# and VB.NET only.
Various code elements like CodeClass and CodeFunction have the Comment property that return the header comment, accessible using Visual Studio code model.
And if a document is opened in VS editor, you can check SnapshotSpan classifications for PredefinedClassificationTypeNames.Comment.

Hide namespace in Quick Info from Visual Studio

Is there a way to hide the clumsy and verbose namespace expression from the Quick Info of classes in VS?
I don't want this:
I want this:
Is there a way to make the class names displayed a bit cleaner like this? It is plain unreadable for the moment. I am thinking of some plugins like ReSharper, CodeRush, JustCode etc.
Further information requested
Could you please confirm which version (and any updates) of Visual Studio you are using? I do see Visual Sudio 2013 as a tag in your question.
Also, is it possible to provide a screenshot of the code without the Quick Info displayed, but, highlight the exact location in your code that you were trying to display Quick Info for?
Initial Answer
As mentioned elsewhere, Resharper can be used to enhance intellisense. i.e. one can choose whether or not to use the default Visual Studio, or Resharper, intellisense provider. But, while Resharper enhances syntax completion and display of parameters, this does not affect Quick Info, in the example given in the question. Quick Info is a tooltip, that by default, is displayed automatically when mousing over a symbol or variable.
In Visual Studio 2010, it was possible to write an extension to override intellisense, to display your own custom tooltip.
IntellisensePresenter
In Visual Studio 2013, there is no built in option to allow customisation.
Visual Studio Ultimate 2013, with Update 4, without Resharper:
Displays the following Quick Info for a Generic Dictionary:
In Visual Studio 2015 (currently Release Candidate), the intellisense tooltip for Quick Info is altered, with increased readability:
Expansion of Answer
Revisiting the example given in the question, and using a simple line of code as a test with a Dictionary containing another Dictionary:
Dictionary<string, Dictionary<string, int>> dict;
In Visual Studio 2013 Ultimate, Update 4, with or without Resharper latest, the following is displayed:
In Visual Studio 2015 RC, with or without Resharper latest, the following is displayed:
Note that Visual Studio 2015 has changed the way that Quick Info is displayed, and is close to the desired outcome. In this instance, ReSharper, although an excellent tool, does not affect Quick Info.
Updates following comments
Visual Studio 2015 RC Quick Info behaviour
To validate that custom types exhibit the same behaviour as described above in Visual Studio 2015 RC, a simple class is created, in a new namespace:
namespace StackAnswer
{
class MyClass
{
public int MyProperty
{
get; set;
}
}
}
Referencing the type using its 'fully qualified' name (i.e without a using statement):
Dictionary<string, Dictionary<string, StackAnswer.MyClass>> dict;
Displays the following:
Adding a using statement:
using StackAnswer;
And altering the reference to the type to not be 'fully qualified':
Dictionary<string, Dictionary<string, MyClass>> dict;
Indicates that Visual Studio 2015 RC displays the name according to the reference declaration:
This is possibly behaviour allowed by use of the Rosyln compiler.
Resharper's "Quick Documentation"
If using Resharper's "Quick Documentation" feature that is opened via a key combination (which is not Visual Studio Quick Info that is displayed on mouse over, as mentioned in the question), the namespaces are indeed shortened. Two screenshots below taken in Visual Studio 2013:
Additional note: background information regarding Quick Info
Visual Assist, an extension for Visual Studio, does possess the ability to enhance, and potentially replace the Quick Info tooltip - if built-in Quick Info is turned off.
Quick Info in Visual Assist
However, currently, in Visual Studio (up to and including 2015 RC), the ability to turn off the built in Quick Info is only available for the C/C++ language; therefore it is unlikely that any tool will presently be able to achieve the exact desired behaviour as mentioned in the original question, which is related to the C# language.
(If using C/C++ this can be found via Tools > Options > Text Editor > C/C++ > Advanced >Auto Quick Info.)
I really recommend ReSharper for that. You can adjust the Parameter Info and Quick Info using the Parameter Info and Quick Documentation features respectively. Both by default hides namespaces and offer more fine grained control over what to display.
On the website you can download a 30 day demo.

List of Visual Studio's Built-In Smart Tags?

I frequently use the Show Smart Tag shortcut in Visual Studio 2010 (Ctrl + Period) when I want to generate using statements, implement interface methods, generate classes, etc.
I recently introduced this shortcut to my co-workers, and they love it.
Obviously, there is a host of contextual uses for this shortcut, and I feel like I've yet to find them all. Is there a central list of all the smart tags that come built-in with Visual Studio 2010? Or, is there a way for me to actually look at a list of smart tags that Visual Studio 2010 has loaded?
Thanks,
Tedderz
There is nothing in the Visual Studio UI which will display the set of possible smart tags. You listed MEF in your tags though. If you are working with a MEF compontent it's very easy to query for this information at runtime. Simple import all uses of ISmartTagSourceProvider and query for the Name attribute
[ImportMany]
public List<ISmartTagSourceProvider> SmartTagProviders;
void GetNames()
{
foreach (var provider in SmartTagProviders) {
var attrib = (NameAttribute)provider.GetType().GetAttribute(typeof(NameAttribute));
attrib.Name;
}
}

Filtering the Visual Studio toolbox

Does anyone know if it is possible at all to filter the Toolbox's items in Visual Studio using an add-in?
Visual Studio 2010 introduced the ability to search but I want to filter, for example: type in button and it must show all items containing "button", same as on this on this Delphi XE screenshot:
This is a very good answer for this question. I copied from the VS blog:
In VS 2010 Beta2, we’ve added the ability to search for controls in the toolbox by name. To use it, put focus in the toolbox (by clicking in it, for example) and start typing the name of the control you want to find. As you type, the selection will move to the next item that matches what you've typed so far.
http://blogs.msdn.com/b/visualstudio/archive/2009/10/26/toolbox-search.aspx
This is something not possible as microsoft does not reveal the secret of adding toolbox controls details completely. They make change the process for each platform and for each versions of visual studio. if we have a clear details of how they add, we can also do the similar kind of small application with search capability and add it as add-in.
Luckily Visual Studio 2012 now has that feature!

Override text rendering in Visual Studio?

I want to customize the way the text is rendered in Microsoft's Visual Studio text viewer. The goal is to implement my own complicated algorithm for whitespace handling.
Note: I've already written "add-ins" to automate some tasks (include guards, copyright insertion in the file's header etc...). However, as far as I understand, "add-ins" cannot be used to override the kind of functionality I need.
Is it possible to override the default text rendering? If yes, where do I start?
(Visual studio 2005 is preferred.)
You should look at Visual Studio language services. Try Language Services on MSDN

Resources