intellisense

Phpstorm Intellisense / Code completion for inherited properties

久未见 提交于 2019-12-11 02:11:53
问题 I have a problem with Phpstorm's code completion for inherited properties. There is an example from my code below. class ParentClass { public $repository; } /* * @property Entity\SubClassRepository $repository */ class SubClass extends ParentClass { public function __construct() { $this->repository= $this->em->getRepository('Entity\Subclass'); } public function ExampleFunction() { $this->repository-> !Here i need the code completion! } } The getRepository function returns SubClassRepository

The JavaScript language service has encountered an error and has been shut down

℡╲_俬逩灬. 提交于 2019-12-11 01:45:25
问题 Suddenly I receive this error message: The JavaScript language service has encountered an error and has been shut down. There is no intellisense in javascript! What to do? 回答1: In my case I have: Latest VS 2013 Upd.3 Latest Web Essential 2013 Latest ReSharper 8.2.1 Sometimes I see this errors on opening first JS-file after running the solution. I have spent about 2 days on it. Removing Web Essentials helps (also clean the AppData\Local\Microsoft\VisualStudio\12.0\Extensions folder: extensions

Extending VS2012 Javascript Intellisense with custom ICompletionSourceProvider

别等时光非礼了梦想. 提交于 2019-12-11 01:45:12
问题 I have created a new classes like following [Order(Before = "High")] [Export(typeof(ICompletionSourceProvider))] [ContentType("JavaScript"), Name("EnhancedJavaScriptCompletion")] internal sealed class JavaScriptCompletionSourceProvider : ICompletionSourceProvider { } And the CompletionSource internal sealed class CompletionSource : ICompletionSource, IDisposable { public void AugmentCompletionSession(ICompletionSession session, IList<CompletionSet> completionSets) { } public void Dispose() {

Resharper intellisense suggests wrong path in MVC 6

删除回忆录丶 提交于 2019-12-11 00:36:23
问题 Here is my solution: I want to import site.css . I know the correct path is: <link rel="stylesheet" href="~/css/site.css" /> . But as you can see, Resharper is suggesting me a different path. Follow Resharper intellisense, the path would be: <link rel="stylesheet" href="~/wwwroot/css/site.css" /> . This is a wrong path, and the file will not be imported. So, my question is: how can I fix this in Resharper? How to let Reshaper know that it shouldn't include wwwroot in the path? I'm using

Why does the compiler find this ambiguous?

倾然丶 夕夏残阳落幕 提交于 2019-12-11 00:22:32
问题 In my base class I have a generic method (ideally this would be a property, but you can't have generic properties) and a non-generic property, both with the same name: protected static T CurrentUserId<T>() { ... } protected static string CurrentUserId { get { ... } } However, when I come to use either of them intellisense reports ambiguity between them. Surely, base.CurrentUserId (without parethesese) provides enough clues to the compiler that I want to invoke the non-generic property? Does

Visual Studio incorrectly marking inactive code blocks when using `#ifdef`

落花浮王杯 提交于 2019-12-10 20:42:11
问题 My project has a bunch of #ifdefs . The macros used by these #ifdef s are usually passed through the command line using the '/D' option to get different build configurations. Visual studio incorrectly assumes that these macros are not defined and greys out the code blocks present inside these #ifdef s. The problem is not syntax highlighting - I can turn the grayed out code to colored code from Options; the main issue is that I am not able to go to the function definition of any functions

Can I tell .net's Intellisense how to sort fields?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 16:13:36
问题 In Visual Studio, Intellisense sorts the fields of an object by alphabetical order. I am used to Delphi, where Intellisense sorts by (method, property, event) and then alphabetically. Is there a decoration once can add to a class/struct definition to tell Intellisense how to sort fields? 回答1: Unfortunately you cannot. It's a feature that's been requested but just hasn't made it in yet. 来源: https://stackoverflow.com/questions/4116688/can-i-tell-nets-intellisense-how-to-sort-fields

Sails.js intellisense in Webstorm

独自空忆成欢 提交于 2019-12-10 15:37:34
问题 is there any available intellisense for Webstorm for Sails.js app? In all my controllers, I get message that the model is undefined, even though it works perfectly. The same goes with calling services. 回答1: This framework is not currently supported - please vote for http://youtrack.jetbrains.com/issue/WEB-11025. And WebStorm doesn't support its way of loading modules and thus can't provide intellisense 回答2: i know this is a little old, but what i ended up doing was first naming all "modules

Intellisense with third party JavaScript libraries in Visual Studio Code

守給你的承諾、 提交于 2019-12-10 15:19:02
问题 I have been playing around with Visual Studio Code today, and have been having a problem getting intellisense to work with some of the code in a JavaScript project. I had read this post http://www.johnpapa.net/intellisense-witha-visual-studio-code/ which talks about this issue, demonstrating how you can use intellisense with angular. I've been looking at some sample projects using a JavaScript library, PlaygroundJS, and it would be very useful to use intellisense within these projects, as

Visual Studio 2013 Intellisense does not put enum type in a place of a parameter of method

跟風遠走 提交于 2019-12-10 13:55:26
问题 For example, I have the following code: namespace VS2013_EnumTypes { class Program { enum SomeEnum { One, Two } static void SomeMethod(SomeEnum someEnum) { //some code } static void Main(string[] args) { SomeMethod() } } } In Visual Studio 2010 and 2012 I can type name of the method SomeMethod and when I type parenthesis '(' then Visual Studio 2010 and 2012 offers me to select the type SomeEnum. But Visual Studio 2013 doesn't do this. It only add for me closing parenthesis and doesn't offer