intellisense

Proper IntelliSense for function that takes and returns heterogeneous dictionary (TypeScript)

冷暖自知 提交于 2019-12-08 10:45:09
问题 I am trying to write a TypeScript type definition for a function that receives and returns heterogeneous types, but am struggling to get the compiler to output the right types. I am hoping someone well-versed in this could help. Suppose I have two classes, a Zebra and a Dog, defined as follows: declare class Zebra { constructor(id: number); getDescription(): { "type": string; "height": number; } } declare class Dog { constructor(id: number); getDescription(): { "type": string; "tailWagSpeed":

IntelliSense doesn't work in Visual Studio Code on Mac

会有一股神秘感。 提交于 2019-12-08 09:41:38
问题 I am using Visual Studio Code to develop an ASP.NET 5 application on Mac. The issue I am having is that I don't get any IntelliSense support (e.g. available class methods) beyond simple autocomplete for methods and variables names that I previously typed. The app targets DNX Core 5.0: "frameworks": { "dnxcore50": { } }, And I have CoreCLR 1.0.0-rc1-update1 installed via DNVM: $dnvm list Active Version Runtime Architecture OperatingSystem Alias ------ ------- ------- ------------ -------------

VS2013 IntelliSense overlapping ReSharper's one

我与影子孤独终老i 提交于 2019-12-08 08:44:24
After installing ReSharper I've noticed a problem with the IntelliSense; In the image it is clearly visible that the IntelliSense of Visual Studio is displayed over the one of ReSharper (which by the way has the focus, so using the arrow keys will move the highlight section of the completion list below). I've tried to do several things without any result (always with VS restart): Switch from ReSharper IntelliSense to VS (back and forth) Limit ReSharper IntelliSense to some selected languages (i.e. C#) Completely disable VS IntelliSense ('Tools | Options | Text Editor | All languages' and

How to autocomplete a delegate in Visual Studio

扶醉桌前 提交于 2019-12-08 08:33:26
How do you autocomplete a method signature based on a delegate? Or atleast get some help from intellisense in completing the method signature. Some method has a delegate as one of its parameters, so I have to create the method, call me lazy but it's quite painful to copy paste the method signature from MSDN. I recall that when you specify an event handler, Visual Studio has an autocomplete feature for you (by hitting tab), but I wonder if this is possible for other kind of delegates. You can't do this unless your are subscribing to an event. It can be a custom event of course. But for other

Intellisense not working when trying to define an xmlns in VS2012

≯℡__Kan透↙ 提交于 2019-12-08 08:03:41
问题 I am trying to add a namespace to one of my usercontrols in xaml. In visual studio 2010 I could just type xmlns:blahblah= and it would add the quotations and offer me a whole list of suggestions of assemblies to add as namespace definitions. In visual studio 2012 I start typing it out and I'm immediately getting xaml errors as I'm typing and no suggestions. The problem is, I don't know what the exact ones I need to add, so I'm a little dependent on the intellisense. Regular intellisense works

Error “system” is ambiguous? [closed]

馋奶兔 提交于 2019-12-08 05:45:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have a simple program, and it works fine, but the system("CLS"); and system("pause"); statements have red IntelliSense lines underneath them. When I move my cursor over them it says Error "system" is ambiguous. What is causing that? Here is my code: #include <iostream> #include <cmath> using namespace std; int

Is there any way to increase code intellisense height in Visual Studio?

我是研究僧i 提交于 2019-12-08 04:54:29
Is there any way to increase code intellisense height on ASP.NET? The intellisense pop-up window is resizable. It will let you increase the vertical height to display a maximum of 16 suggestions (and a minimum of 5). Once the pop-up is visible, hover your mouse over the bottom right corner and you will see the arrow cursor that indicates that you can click and drag to adjust the size of the pop-up. When the intellisense box is displayed, you can use your mouse to resize the box to an extent. There is a limit to how big or small you can make it, but you can resize it both vertically or

How to decrease the autocompletion delay in visual studio code for python imported packages?

有些话、适合烂在心里 提交于 2019-12-08 04:24:23
问题 I am using python 3.7.3 and visual studio code 1.33.1. When I import any library like cv2 or numpy and try to use it, the autocompletion takes 4-5 seconds to identify the functions. When I use the default functions like print(),slice(), etc., they autocomplete within 1 second. I tried using the following config "python.linting.pylintArgs": ["--extension-pkg-whitelist=cv2"], "python.autoComplete.extraPaths": [ "C:\Users\Pratik\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7

How to autocomplete a delegate in Visual Studio

只谈情不闲聊 提交于 2019-12-08 03:41:49
问题 How do you autocomplete a method signature based on a delegate? Or atleast get some help from intellisense in completing the method signature. Some method has a delegate as one of its parameters, so I have to create the method, call me lazy but it's quite painful to copy paste the method signature from MSDN. I recall that when you specify an event handler, Visual Studio has an autocomplete feature for you (by hitting tab), but I wonder if this is possible for other kind of delegates. 回答1: You

asp.net mvc3 intellisense don't fire for css classes

怎甘沉沦 提交于 2019-12-08 03:04:21
问题 In Visual Studio 2010 Ultimate, MVC3, razor engine, _Layout.cshtml. If I reference CSS like this : <link href="@Url.Content("/Content/Site.css")" rel="stylesheet" type="text/css" /> than intellisense don't work for css classes! example : <div class="<---- IntelliSense don't fire But if i reference CSS like this : <link href="/content/Site.css" rel="Stylesheet" type="text/css" /> than IntelliSense work. Any help? 回答1: Well, the "why" is simple: Visual Studio does not execute the call to Url