intellisense

PhpStorm: annotation for inherited method return type?

此生再无相见时 提交于 2019-12-13 13:28:19
问题 This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 5 years ago . Using a Behat sub-context class I need to call a method from the main context, e.g. $this->getMainContext()->fooBar() . PhpStorm quite reasonably warns me that fooBar() doesn't exist, because it expects getMainContext() to return an ExtendedContextInterface , not my concrete FeatureContext . Is there a way to annotate my sub-class to tell PhpStorm that getMainContext() actually

Visual Studio Intellisense not up to date for one class

ⅰ亾dé卋堺 提交于 2019-12-13 13:25:24
问题 For some reasons Intellisense is not up to date for 1 class (C++) in my project (when I call a method it refers to the old parameters and so on)! I'm able to compile but it would be fine if there is an option to update Intellesense (refresh local cache or something)? Thx 回答1: Unload the project in the solution and reload it! (now I solved this issue) 回答2: I helped myself by renaming the intellisense database file (*.ncb) to - as example - *.ncbx. This helped me for my VS2008 Problem. But

Intellisense while editing JS files

我是研究僧i 提交于 2019-12-13 09:37:48
问题 I am creating project in Visual Studio. While editing JS in a HTML file, since we have included the reference to all JQuery files on top, we get intellisense for jquery instances. But, when we are editing JS files, we don't get any intellisense at all! Is there any way to get intellisense there too? 回答1: Assuming you're talking about Visual Studio, try adding the following line to the top of your .js file. /// <reference path="~/path/to/your/jquery.js"/> Also, if you're using anything other

Show NSPopover without Focus

无人久伴 提交于 2019-12-13 02:59:08
问题 I'm working on creating an IntelliSense style popover that shows the user who is typing into a text field what syntax is valid. Does anyone know how to show an NSPopover without giving it focus, so that the user can continue to type into the textField? The popover is triggered by controlTextDidChange: - (void) controlTextDidChange:(NSNotification *)obj { NSTextField *field = [obj object]; NSString *command = [field stringValue]; if ([[command substringFromIndex: command.length - 1]

Intellisense and error highlighting not working by default in VS2012

a 夏天 提交于 2019-12-13 02:35:48
问题 I've recently bought a new computer and as such have had to install visual studio 2012 onto it. When I installed it onto my last computer, everything worked fine by default; this time, auto-completion is off/not working and neither is error highlighting. I've tried resetting the settings to their defaults but this has had no effect. What else can I try? Thanks. 回答1: Did you try the second suggestion here Intellisense and code suggestion not working in Visual Studio 2012 Ultimate RC Delete the

C++ VS Express 2010 Intellisense

人盡茶涼 提交于 2019-12-13 01:54:23
问题 I'm trying to use Visual Studio Express 2010 to write an openGL program, so It's a win32 console application. And I can't get Intellisense to show up for anything, openGL or otherwise. What am I doing wrong, and how can I force Intellisense to show? (Like you can force the Xcode equivalent with Esc) 回答1: From MSDN: IntelliSense can stop working under certain conditions. Use the following steps to help determine why IntelliSense does not work for C++ projects. To investigate IntelliSense

Missing intellisense, autocompletion in for loop

不想你离开。 提交于 2019-12-13 00:04:28
问题 I'm doing simple for loop through my node lists. nodeList = obj.get_nodes_list() for node in nodeList.items: print node. Node is type of V1Node and I want to access status property (field) This is what I get in PyCharm IDE in debugging session: And this is what I have using intellisense: Question: Where I have all the public fields ?! 回答1: In a debug session, PyCharm has access to the instance of an object, and can inspect and see exactly which attributes it has. When you're editing the code,

Intellisense cannot infer type from extension method

ぃ、小莉子 提交于 2019-12-12 20:17:13
问题 The example below compiles successfully. The compiler can infer the type of e (Customer) My question is why Intellisense cannot do the same? When I type customer.SetValue( it correctly shows that the method expects Expression<Func<Customer, TProperty>> but when I type e => e. it cannot understand that e is a Customer Is this expected or is it a bug? using System; using System.Linq.Expressions; using System.Reflection; namespace ConsoleApplicationExpressionTree { class Program { static void

Simple Code Need Help - no instance of constructor matches argument list

£可爱£侵袭症+ 提交于 2019-12-12 17:41:01
问题 I am following a book on C++ programming and I got stuck on vectors. The example from the book goes: vector<int> v = {1,2,3}; but I'm getting an error: 1 IntelliSense: no instance of constructor "Vector<T>::Vector [with T=int]" matches the argument list argument types are: (int, int, int) ../path Also, when I create string vector: vector<string> v = {"one", "two", "three"} I get this error: 1 IntelliSense: no instance of constructor "Vector<T>::Vector [with T=std::string]" matches the

Visual Studio intellisense not working in one .ascx file

让人想犯罪 __ 提交于 2019-12-12 17:30:58
问题 I have two .ascx files in the same folder in an ASP.NET MVC project. In one of them intellisense is working fine. In the other it does not work at all. Any ideas? The files are very similar with the same @control definition at the top. Using VS2008 and C#. 回答1: Try rebuilding your project. Intellisense doesn't work in views until it has been built. 回答2: Sometimes I find deleting the designer.cs file, and then right clicking the .ascx and selecting 'Convert To Web Application' (which re-gens