intellisense

jquery intellisense vs2010 mvc3

冷暖自知 提交于 2019-12-03 05:27:03
jQuery intellisense does not work for me unless I place: <script src="../../Scripts/jquery-1.4.4-vsdoc.js" type="text/javascript"></script> ...in the page. I thought putting it in the _Layout.cshtml would be sufficient but it's not. I have to do this on every page, partial etc. Is this a bug or is there a better way to enable jQuery intellisense across all the pages and .js files? kapsiR You can also use an if clause like: @if (false) { <script src="/Scripts/jquery-1.4.4-vsdoc.js" type="text/javascript"></script> } If u need to add jQuery intellisense to a .js file, add this: /// <reference

ASP.net MVC 3 Razor - jQuery Intellisense

僤鯓⒐⒋嵵緔 提交于 2019-12-03 05:17:28
I am using Visual Studio 2010 / ASP.net MVC 3 with the Razor View Engine. I created a new Project with the Internet Application template. What do I need to do to get Intellisense working? If that's jQuery specific as the title specifies, trying adding line to the tag in the Views/Shared/_layout.cshtml (or .vbhtml ) file: @if (false) { <script src="../../Scripts/jquery-1.4.4-vsdoc.js" type="text/javascript"></script> } This will reference the intellisense file to VisualStudio and still will not reference it in runtime. Just remember, point to the vsdoc file relatively to the file you put this

Visual Studio Crash when typing in editor

假装没事ソ 提交于 2019-12-03 05:10:35
I have been using VS2010 for a few weeks but for the past few days it has been totally unusable, when i type anything into the editor Visual Studio throws an exception, then I get lots of intellisence errors (the code is fine, I can compile it if I run before trying to use the editor) - here is the log message: <entry> <record>241</record> <time>2011/01/25 08:30:34.109</time> <type>Error</type> <source>Editor or Editor Extension</source> <description>System.InvalidCastException: Unable to cast COM object of type &apos;System.__ComObject&apos; to interface type &apos;Microsoft.VisualStudio

Anyone found a PowerShell Syntax highlighting or IntelliSense plugin for Visual Studio? [closed]

*爱你&永不变心* 提交于 2019-12-03 04:43:30
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Has anyone found a plugin for Visual Studio to allow for PowerShell syntax highlighting or IntelliSense? If not, does anyone have any

VS Code Intellisense don't suggest snippet at first

隐身守侯 提交于 2019-12-03 04:07:01
问题 I want to use code snippets in VSCode. But when I type, for example, for in javascript file, the Intellisense doesn't suggest snippet "for-loop" - I need to manually scroll the dropdown and select it. Is there any way to make VSCode to suggest snippets at first? Thank you! UPD: I have found the person with same problem, but he has no answers - link 回答1: You need to use editor.snippetSuggestions config option with "top" value. Please, see Customizing IntelliSense article for more tips and

Visual Studio 2010: Editor stops responding to keyboard

守給你的承諾、 提交于 2019-12-03 02:59:36
问题 I've got this very odd bug that appears to be a quirk in Visual Studio 2010 : Sometimes, when moving the cursor into double quotes of a CSS style="" attribute the cursor refuses to move. I can't type anything, and the keys that respond are the UP / DOWN cursor keys and the DEL key (but not BACKSPACE ). Typing does nothing, but pushing LEFT / RIGHT on the cursor keys produces the following error: The operation could not be completed I've got no idea what's causing this, but I would hazard a

Hiding GetHashCode/Equals/ToString from fluent interface classes intellisense in Visual Studio for C#?

时光怂恿深爱的人放手 提交于 2019-12-03 02:30:13
I have a fluent interface for an IoC container registration process, and this contains some classes that are used to build up the registrations. For instance, I can do this: builder.Register<IFoo>().From.ConcreteType<Foo>(); However, at each step after a dot, intellisense pops up showing the four standard methods from the Object class, GetHashCode, Equals, GetType, and ToString. I tried overriding these methods in a couple of the classes, attaching the EditorBrowsableAttribute attribute to each, but they still show up. Is there no way for me to hide them? Note that I'm not trying to hide them

Get VS javascript intellisense for js in a different file

╄→гoц情女王★ 提交于 2019-12-03 02:18:29
问题 So I've defined my 'enum' at the top of my javascript file as so: var loaderOptions = { "SHOW": 0, "CHANGEPAGE": 1, "HIDE": 2 }; I wanted this enum to be used in a utility function used later ( showLoader(miliseconds, elementOrPageID, option, textMessage, callbackFunc) {} ). This is all working fabulously as I have intellisense when I call the enum/variable HOWEVER, I would like to move the function and its enum OUT of my main file into a utility file ... I can make this work just fine but I

How to show method parameter tooltip in C#?

大城市里の小女人 提交于 2019-12-03 00:25:35
问题 VS2010: In VB I can place the cursor inside an existing method's parameter brackets and type a 'space', which will bring up the tooltip with description of the parameter I'm at. This is not the case in C#. I have to delete the whole brackets including the parameters, and retype the left bracket, for this tooltip to show. Is there some shortcut or setting to change this behavior? I tried hitting ctrl, shift, alt, but it has no effect. 回答1: Ctrl + Shift + Space will do what you want. You might

Adding additional js files breaks jQuery IntelliSense

自作多情 提交于 2019-12-03 00:08:22
I have been using jQuery IntelliSense in VS2008 and it has been great. Recently I added a reference to jQuery UI and since then, the jQuery IntelliSense has went away. I found that once you reference another .js file in your document, the IntelliSense goes away. Any way to avoid this? If there are errors in any refernced files it will break intellisense for all files references from the same document. The next version of Visual Studio is going to be much more robust in this respect. I apologize directly for this fragility. We made some design decisions early on that we prevented us from making