intellisense

How would I retrieve the fully qualified name of an identifier in a VS macro?

拜拜、爱过 提交于 2019-12-04 09:00:38
I'm trying to resolve the fully qualified name of a c# identifier at a certain point (cursor) of a code window, using a Macro (or even an Add-in) in Visual Studio 2008. For example, if the cursor is in "Rectangle", I would like "System.Drawing.Rectangle" returned. I've tried FileCodeModel.CodeElements and .CodeElementFromPoint but they only retrieve the containing method or class (and others). If this can't be done using a macro or add-in (even though VS does know the information via intellisense), would it be possible to use Reflection read in the c# file and get the desired info? It can be

Using JQuery in a Subfolder When the MasterPage is in the Root Folder

佐手、 提交于 2019-12-04 08:49:13
I am trying to use the jquery library in ASP.NET in a subfolder called "samples" with a masterpage that is located in the root directory. Presently the references to the jquery scripts are located in the head tag of the master page. If the page I am creating is also in the root directory, everything works fine. If I move the page to the "samples" subdirectory, the jquery breaks. I can fix the problem by using something like the following in the head tag: <script src="<%=ResolveUrl("~/js/jquery.js")%>" type="text/javascript"></script> ...but then I lose the ability to use jquery intellisense,

Visual Studio 2010 IntelliSense -> Enter will not AutoComplete any more

Deadly 提交于 2019-12-04 08:19:06
问题 I am very much use IntelliSence of VS2010. Sometimes, I can not tell when and why, the IntelliSence changes. Example: Label lblTestTest The normal behavoir is: I type "lblTes" - see the IntelliSence who select the Label - Push Enter - Autocomplete the word, I type ".Te" - see the IntelliSence who select the Property ".Text" - Push Enter - Autocomplete. Sometimes it is: I type "lblTes" - see the IntelliSence who select the Label - Push Enter - The Enter does NOT activate the AutoComplete, It

Visual Studio ASP .Net MVC Intellisense

て烟熏妆下的殇ゞ 提交于 2019-12-04 07:14:55
the vs 2008 intellisense doesn't work if i use it inside html attribute. example <form method="post" action="<%= Url.Action %>" while i'm typing Url.Action the code hint doesn't work, instead it gave me options of files that can be used for the "action" value. Is it normal that the intellisense doesn't work inside html attribute? or am'i missing something to fix this bug. I think it's just that way for now. I have the same 'issue' but got used to it. Tip: If I need Intellisense, I just create a separate <% %> bracket somewhere else temporarily (where Intellisense will work), write the code I

SQL Server Intellisense not working on *some* servers

喜夏-厌秋 提交于 2019-12-04 05:28:05
Intellisense works... On some of the servers. It's the same Server Management Studio (SQL Server 2008) I'm using to manage the servers but Intellisense doesn't work on one of the newer servers (not sure if other servers have the same issue, as of now I've only encountered this problem on one of the servers). I checked all the settings etc, but as I said - it does work on some of the servers in SQL 2008 Server Management Studio so it seems like it's limited to this one specific server. (I wasn't sure if this belonged here. If this post is in the wrong place please move it) Question3CPO This

Is VIM omni-completion really so limited? Or am I missing something?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 05:07:16
Ruby: file = File.new("some.txt", "r") lines = file.readlines Omni-completion tests file.readl --------- readline <- PASSED readlines --------- "hola".capital --------- capitalize <- PASSED capitalize! --------- lines. <-- FAILED (no suggestions) lines[0].capital <-- FAILED (no suggestions) I tried Python as well, and it worked in similar way. So it looks like omni-completion can't be used for real development, as it fails on pretty simple cases? Am I missing some thing? May be the intellisense can be improved some how for Ruby/Python? The issue is that Vim does not know if line is a String,

C# Class Library method summaries are not showing in intellisense

梦想与她 提交于 2019-12-04 05:05:47
Fairly self-explanatory I feel I'm guessing here, but if this is your class library, you have to make sure you actually build the XML documentation file, otherwise the method summaries will only be available from within the same assembly. Project Properties -> Build Tab -> Output section -> Check "XML documentation file" Obviously, as Mitchel points out, you have to import it too, but this is generally automatic when you add an assembly reference (as long as it exists). When you build the class library, be sure to put the .xml file that has the documentation in the same folder as the .dll.

Intellisense not working with templates VS2012 ultimate c++

▼魔方 西西 提交于 2019-12-04 04:44:10
Intellisense is working very badly with my VS... When I'm coding in C++ it works 100% fine, until I start using templates, then it just stops working completely, stops detecting errors and don't auto-complete in all cases. I'm inclined to believe it has to do with something I have done with my code that broke it. So I started by creating a class with a struct in it: template<typename T> class List<T> { private: struct Node { T value; Node* next; Node* previous; }; Node* First; Node* Last; ... }; later, I declare some additional functions: template<typename T> inline T List::First() { return

Template IntelliSense

流过昼夜 提交于 2019-12-04 03:19:13
I use C# mostly and one thing that I am missing in VSCode is IntelliSense in Angular 2 templates. I found that there is a solution to this problem here , but I couldn't find a way to integrate it into Visual Studio Code. I need this: Is there any way to get IntelliSense in Visual Studio Code for Angular 2 templates? That page you linked details the installation steps: Usage in VSCode: Replace the typescript.tmLanguage file under the install location at Contents/Resources/app/extensions/typescript/syntaxes with the version from the TypeScript-TmLanguage repo above (from the ngml branch). Fork

Is it possible to stop intellisense for .sql files in Visual Studio 2010?

我只是一个虾纸丫 提交于 2019-12-04 03:07:07
问题 I'm using Visual Studio 2010 to edit DDL for a MySQL database in a file with a ".sql" extension. The IDE insists on providing red squiggles under perfectly legal MySQL syntax, presumably as it's not legal SQL Server syntax. Is it possible to disable syntax highlighting for .SQL files? Or, better still, is MySQL IntelliSense highlighting available? 回答1: Visual Studio 2010 Tools -> Options -> Text Editor -> Transact-SQL -> IntelliSense Uncheck "Enable IntelliSense". Visual Studio 2012 & 2013