intellisense

Automatic addition of `using` in CodeRush

青春壹個敷衍的年華 提交于 2020-01-13 19:34:47
问题 I just installed CodeRush Pro (evaluation trial) for Visual Studio and I can say I like it much so far. Comparing to Resharper there is only one type of feature I'm really missing. It is the way CodeRush deals with using . When I type some class name that is not declared in some package listed in using, CodeRush underlines it red as an error(what it is) but if I hover over it with cursor it does not offer me to add using, it merely says it is "Undeclared element". I have to use VS default

Automatic addition of `using` in CodeRush

谁说胖子不能爱 提交于 2020-01-13 19:34:08
问题 I just installed CodeRush Pro (evaluation trial) for Visual Studio and I can say I like it much so far. Comparing to Resharper there is only one type of feature I'm really missing. It is the way CodeRush deals with using . When I type some class name that is not declared in some package listed in using, CodeRush underlines it red as an error(what it is) but if I hover over it with cursor it does not offer me to add using, it merely says it is "Undeclared element". I have to use VS default

Visual Studio 2017, JavaScript intellisense inconsistencies

拟墨画扇 提交于 2020-01-13 08:20:30
问题 TL;DR : How do you include a tsconfig.json file in Visual Studio 2017 and still have JavaScript intellisense work like it does by default, giving code hints both for your own code and 3rd-party libraries? Is it borked, or do I just need a better understanding of how it works? Much like jQuery, I would like ubiquitous access to my own JavaScript namespaces across JavaScript and html files with intellisense. How does one achieve this? EDIT 3 : I reported this issue on developercommunity

C# Class Library method summaries not showing in intellisense of vb.net project

99封情书 提交于 2020-01-13 07:56:06
问题 (VS 2008) I'm using a C# library for my VB.NET project. And the method summary/notes or what they are called do not show in intellisense. Is this supposed to be like that? Or is there something I must do to fix it? And if not, will VS 2010 be able to do this? EDIT: Still unresolved. Now building library dll + xml file, but how to import the xml file in my vb project? See image: http://i52.tinypic.com/25kh5xw.png 回答1: In C# library, go to the properties on the build tab, and check the checkbox

Best Practices for IntelliSense JavaScript references

爱⌒轻易说出口 提交于 2020-01-12 08:27:07
问题 Assuming a person has Visual Studio 2008 set up correctly for JavaScript Intellisense, what are the best practices for the actual javascript reference declarations? The basic form, of course, is (right up at the top of the file): ///<reference path="path-to-file.js" /> But what are the rules for the path? Webapps Should web applications use forward slashes like a url? "filename.js" for files in the same directory? "./filename.js"? Root relative "/path/to/filename.js"? Are all of these

Best Practices for IntelliSense JavaScript references

青春壹個敷衍的年華 提交于 2020-01-12 08:24:10
问题 Assuming a person has Visual Studio 2008 set up correctly for JavaScript Intellisense, what are the best practices for the actual javascript reference declarations? The basic form, of course, is (right up at the top of the file): ///<reference path="path-to-file.js" /> But what are the rules for the path? Webapps Should web applications use forward slashes like a url? "filename.js" for files in the same directory? "./filename.js"? Root relative "/path/to/filename.js"? Are all of these

Dynamic Object Intellisense

混江龙づ霸主 提交于 2020-01-10 05:49:28
问题 If dynamic resolves to object at compile time, and all .NET types extend object, why does dynamic not act like an object with regards to IntelliSense? Whenever I use dynamic I get a message saying "dynamic expression. this will be resolved at runtime". Surely it should also display object members? 回答1: Intellisense do not work in dynamic type. It is resolved at Runtime. Dynamic type work for static types as well as anonymous types. If intellisense would have worked, it would have defied the

How can I Start-Process powershell.exe with some string splitter?

寵の児 提交于 2020-01-07 03:01:05
问题 I want to start powershell.exe with a scriptblock like this (it's working fine): Start-Process powershell.exe { Get-Help Get-Process } But this script doesn't work: Start-Process powershell.exe { $string = "123xAbcxEFG" $split1,$split2,$split3 = $string.Split("x") Write-Output $split1 Write-Output $split2 Write-Output $split3 sleep 10 } I think I need Add-Type -AssemblyName "SomeNameSpace" , but how can I find that namespace? Any intellisense or something like this? 回答1: you can use start-job

How can I pass the arguments from a Visual Studio Code task.json to a g++ command when the command includes a space

爱⌒轻易说出口 提交于 2020-01-06 08:16:38
问题 I have a Visual Studio Code tasks.json file to run a C++ file via g++ : { "version": "2.0.0", "tasks": [ { "label": "echo", "type": "shell", "command": "g++", "args": [ "-I ~/vcpkg/installed/x64-osx/include/", "test.cpp" ], "group": { "kind": "build", "isDefault": true } } ] } The problem is the resulting command > Executing task: g++ '-I ~/vcpkg/installed/x64-osx/include/' test.cpp < has single quotes so that won't work. I took a look here and tried this: { "version": "2.0.0", "tasks": [ {

Visual studio intellisense does not see new methods until restart?

拟墨画扇 提交于 2020-01-05 08:04:13
问题 I have a fairly large C# project with many files, classes etc. Everything works fine but if I move to say ClassA and add a new method or property and then move to another file in the solution and attempt to access it the intellisense reports it does not exist and underlines it in red. If I build the solution it will correctly build without errors and the red lines will disappear until I start editing the file again and then the red lines will come back and be reported as errors. Saving the