intellisense

Where is Visual Studio's NCB file located?

可紊 提交于 2019-12-01 04:23:28
I have a suspicion that my Visual Studio Intellisense has stopped working. I have read that this may be the cause of the NCB file being corrupted and needs to be deleted. I have searched for the NCB file throughout my computer but no search results have popped up. Where can I manually locate this file? If you have one: it should be in the same directory as your solution (.sln) file, with the same basename. If your solution is C:\projects\acme.sln then it should be C:\projects\acme.ncb . But: Starting with Visual Studio 2010, it no longer uses the .ncb system. Instead, it creates a file with a

Use suggested method parameters in Visual Studio Code

寵の児 提交于 2019-12-01 04:11:56
Visual Studio Code suggests the right parameters for well defined methods as you type them. Is there a way to take them over / insert them straight away? Doesn't feel right to write the parameters with their types by hand... Something like that exists for javascript & typescript files: settings.json Ctrl + , "typescript.useCodeSnippetsOnMethodSuggest": true, // from vscode 1.28 "typescript.suggest.completeFunctionCalls": true, "javascript.suggest.completeFunctionCalls": true, 来源: https://stackoverflow.com/questions/36391941/use-suggested-method-parameters-in-visual-studio-code

Declare Interfaces in typings file for JavaScript

安稳与你 提交于 2019-12-01 04:03:21
Project Info I'm working on a JavaScript project that utilizes .d.ts files. This is a subsequent question to a question I previously asked, so you can view more information regarding the project here . Problem Although I can normally extract functions from the typings files I can't extract interfaces or namespaces that are either empty or consist purely of interfaces. I have temporarily fixed this problem by creating a const implementation for each interface and using @typeof ConstantImplementation in the comments. See Example below: // Typings File export namespace test { export interface

How to hide private members of a Class?

倖福魔咒の 提交于 2019-12-01 03:59:14
I've been using visual studio for some time and it annoys me everytime when I work with Classes. The problem is, when I create an object of a Class I tend to see the private members belongs to that class and I don't want to, because what if I create a class with 10+ private variable, then it will be a nightmare, there must be a way to hide private members, If there is a way could you please share it with me? Thank you :) EDIT: Here is a picture that will help you understand what I'm talking about, for example here I have 2 private variables of LinkedList class (curSize and head) I won't be

IntelliSense in custom COM classes in VBA

喜欢而已 提交于 2019-12-01 03:27:01
Is there a way to get IntelliSense in own built COM classes in VBA? E.g. in the example below I would like to get "Number" showing up, whenever I press on the dot (or ctrl+space for shortcut): I suppose, if this is somehow resolved, I would also get some info concerning the public functions of the objects here: Thus, what are the suggestions? Suggestion 1 : Simple example could look like this. c# class library named IntellisenseDemo code using System; using System.Runtime.InteropServices; namespace IntellisenseDemo { [ComVisible(true)] [Guid("41B3F5BC-A52B-4AED-90A0-F48BC8A391F1")]

Configure keys that trigger intellisense completion in Visual Studio

不问归期 提交于 2019-12-01 03:14:38
I would like Visual Studio to autocomplete the current entry in the intellisense menu only when I hit tab. Autocompletion being triggered, for example, when I press a period, is forcing me to hit escape every time I'm writing something that cannot yet be autocompleted, to avoid that what I'm typing gets replaced with a random entry. Is there an option to configure this? I'm using Visual Studio 2015, and programming in C#. Example: here I'm typing Log , which is a class for which I haven't yet added the appropriate using statement. None of the suggestions is the good one. If I hit . now, the

VS2010 - HLSL Intellisense?

試著忘記壹切 提交于 2019-12-01 03:07:27
Are there any free components out there that will give highlighting and/or intellisense for HLSL? I've seen mentions of something called "InteliSense.Net," but the author's site is down and I can't find a download anywhere. Not a direct answer to your question, but this is what I do to solve the same problem: I set Visual Studio to open *.fx files in Notepad++. (Right click the file, Open With, Add Notepad++, Set Default). Of course, you can use any editor you like. I use a HLSL syntax highlighting file for Notepad++ that I found on Google. I think it's this one . And finally, I keep this MSDN

VS Intellisense: can you hide extension methods?

天大地大妈咪最大 提交于 2019-12-01 02:56:30
By default Visual Studio displays all members and its extension methods for a type in intellisense. Sometimes I would like to hide the extension methods to make it easier to find the member I am actually looking for (especially when using Linq). Is there a shortcut or another way to display only the members of a type in intellisense? Not that I'm aware of - but one thing you might want to do is get rid of the using directive for System.Linq . At that point the extension method won't be accessible, and I believe it won't be offered by Intellisense. Obviously that's no good if you want to use

Where is Visual Studio's NCB file located?

有些话、适合烂在心里 提交于 2019-12-01 02:37:28
问题 I have a suspicion that my Visual Studio Intellisense has stopped working. I have read that this may be the cause of the NCB file being corrupted and needs to be deleted. I have searched for the NCB file throughout my computer but no search results have popped up. Where can I manually locate this file? 回答1: If you have one: it should be in the same directory as your solution (.sln) file, with the same basename. If your solution is C:\projects\acme.sln then it should be C:\projects\acme.ncb .

Why are DispatcherObject.CheckAccess() and VerifyAccess() hidden from Intellisense?

亡梦爱人 提交于 2019-12-01 02:13:41
The System.Windows.Threading.DispatcherObject class (which DependencyObject is based on) contains a useful function, called CheckAccess() , that determines whether or not the code is running on the UI thread. When I wanted to use it yesterday, I was puzzled to find out that Intellisense didn't show the function (nor VerifyAccess() , which throws an exception when not on the UI thread), even though the MSDN library lists it. I decided to investigate the class using Reflector. It seems that the function in question has an EditorBrowsable(EditorBrowsableState.Never) attribute attached to it. The