intellisense

ReSharper - How to show custom snippet in IntelliSense

荒凉一梦 提交于 2019-12-10 13:55:25
问题 I've created a custom snippet that contains a shortcut proplto . If I hit Ctrl-K, Ctrl-X and open My Code Snippets I can select my snippet. I can also type proplto in code, hit TAB and the snippet is inserted. However, I can't find a way to display my snippet in IntelliSense. It shows prop and propg but not my proplto . I tried adding my snippet by going to Resharper > Templates Explorer , selecting C# and importing my snippet file. It says "No templates of type 'Live Templates' found in the

Visual Studio 2010 intellisense not recognising additional include directory

一曲冷凌霜 提交于 2019-12-10 13:47:27
问题 I couldn't find a similar question to this on here as it is quite convoluted and I guess more of an annoyance than a major issue. Apologies if this already exists. I have set a system environment variable known as BOOST_ROOT which points to the directory with all the boost headers (in my case this is C:\Program Files (x86)\boost\boost_1_46_1). I assign this as an additional include directory in my visual studio 2010 project properties (by placing $(BOOST_ROOT) in Configuration Properties->C/C

Intellisense in .skin files in ASP.NET 4

♀尐吖头ヾ 提交于 2019-12-10 13:29:01
问题 Is there a good way to apply intellisense in .skin files in ASP.NET 4? like a microsoft visual studio tool for example? I installed an intellisense schema for .skin files to my visual studio 2008 long time ago but it had some bugs so i had to remove it. any improvements in visual studio 2010? 回答1: Try this: Tools -> Options -> Text editor -> File extensions. Now type skin in the extension textbox and select User Control Editor from the dropdownlist. Click Add . Close and reopen your .skin

XML/XSD intellisense not working in Visual Studio 2010

喜欢而已 提交于 2019-12-10 13:09:05
问题 I am working on xml and xsd files in VS 2010 but intellisense isn't working. Intellisense is working for the same files in VS 2008, however. When I type '<xs:' options like "attribute", "complexType", "simpleType", or "element" do not appear. Is there some difference between the VS 2008 and VS 2010 that I'm missing? I add an xsd file to my solution. All the proper namespaces are generated automatically as such: <?xml version="1.0" encoding="utf-8"?> <xs:schema id="XMLSchema2" targetNamespace=

Tab behavior Resharper Intellisense Options

邮差的信 提交于 2019-12-10 12:59:10
问题 A product like Resharper has many settings, and I can't seem to find the right settings to get the exact behavior I desire from it. The behavior I am trying to change is this: Suppose the endresult I want is but the line currently is As you expect I start typing: and after a tab I get this but I wanted it to become Does anyone know how I can change the Resharper settings in such a manner that my desired behavior is realized? Thank you. EDIT: Note that tab does perform the desired behavior in

How get VS HTML editor to default to single quotes?

女生的网名这么多〃 提交于 2019-12-10 12:42:57
问题 Autocompletion in the Visual Studio HTML editor inserts double quotes (e.g. <input type="text" ). Does anyone know if there's a setting that will change the default to automatically insert single quotes (e.g. <input type='text' )? thanks, Michael 回答1: There is no option built into Visual Studio to do this. There might be a third party plugin to help you out, but if so I am not familiar with it. 来源: https://stackoverflow.com/questions/270264/how-get-vs-html-editor-to-default-to-single-quotes

Can Visual Studio's C# intellisense be given a hint to display a certain method overload first?

笑着哭i 提交于 2019-12-10 12:38:58
问题 I have two methods that are overloads of each other public class Car { public int GetPrice(string vinNumber) { string make = Database.GetMake(vinNumber); // expensive operation string model = Database.GetModel(vinNumber); // expensive operation int year = Database.GetYear(vinNumber); // expensive operation return this.GetPrice(make, model, year); } public int GetPrice(string make, string model, int year) { // Calculate value and return } } In my example, the GetPrice(make, model, year)

How do you auto-implement an interface in C#?

a 夏天 提交于 2019-12-10 12:38:57
问题 Previously in Visual Studio, if you declared a class with an interface you could put your cursor on the interface, right-click it and select Implement Interface . (See here for a similar question for VS 2008.) I've started working on a project that has defined numerous interfaces that will be used with SimpleInjector. Now, as I am beginning to write my service classes, I've noticed that the Implement Interface menu option is gone. How can I implement all necessary method stubs like I could in

Intellisense Not Working SSMS 2014

倾然丶 夕夏残阳落幕 提交于 2019-12-10 12:35:00
问题 I know there are a lot of posts on this issue, however I am unable to find a resolution to my issues. Running: SMS 2014 with CU1 - Version 10.0.2342.0 on both SSMS and Client Tools. Visual Studio 2010 SP1 - 10.0.40219.1 SP1Rel Connecting to: Server 2008 R2 SP2 CU 5 - 10.50.4276 Have Verified: IntelliSense in enabled. SQLCMD Mode is disabled. Have Refreshed Cache. Verified IntelliSense settings. Server does not support contained databases so this was ruled out. Behavior: When connected to the

Make SQL Intellisense know the current database

心不动则不痛 提交于 2019-12-10 12:25:18
问题 How do I make SQL Server Managment Studio Intellisense know what is the current database in use, i.e. I want to be able to do the following SELECT * FROM Table instead of SELECT * FROM DatabaseName.dbo.Table with intellisense. UPDATE Just confirm, I already had the currentdatabase selected, i.e. I don't have master database shown in the bottom left corner. 回答1: Sometimes adding Use DatabaseName Go To the top of your script file and executing it will do the job. Other than that, the