intellicode | Visual Studio IntelliCode - AI-enhanced development tools | Machine Learning library
kandi X-RAY | intellicode Summary
kandi X-RAY | intellicode Summary
Visual Studio IntelliCode - AI-enhanced development tools. Want to submit an issue to MicrosoftDocs/intellicode? If you have a bug or an idea, read the contributing guidelines before opening an issue. For FAQ's see
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of intellicode
intellicode Key Features
intellicode Examples and Code Snippets
Community Discussions
Trending Discussions on intellicode
QUESTION
So I am new to C# and Vs Studio. I was playing around learning it by adding new classes and testing what I could do. However, today it seems like no matter what I do, when I create a new class it won't link to the main file.
For example, I will go to the toolbar up top and navigate to Project -> Add New Item -> Visual C# Class
I notice I no longer get the option to name the file in this window like I use to
I have working classes currently from the last time I did this and tried to create a new file in the project and just copy/paste all the code while changing the name of the class, still didn't work.
Not sure what is going on anymore as I've followed YouTube tutorials click for click but it still doesn't work.
Below are the stats of my VS studio which I havent changed since the last time I've used it and the last time I used it, creating a c# class worked without these problems.
...ANSWER
Answered 2021-May-27 at 14:53Your solution explorer is in "Folder View" - it behaves differently in that view. To switch back to the regular view, click the "Switch between solutions and views" icon in Solution Explorer (circled), and double click you solution file (.sln):
After you are back in your solution view, you should be able to right click and add an item to add a class file again, and choose its name before creating it.
QUESTION
I've encountered NuGet problems while building DirectX-Graphics-Samples
The error occurs with many projects, here is an example:
...ANSWER
Answered 2021-May-05 at 01:29QUESTION
When I open any project in Microsoft Visual Studio Community 2019 Version 16.8.4, even a simple newly created .net core console project. I get the error message:
There was an error activating the remote language server, c#/Visual Basic Language Server client.
Afterwards there is no IntelliSense and even though I am able to run a build of the project no errors or warnings appear in visual studio.
The activity monitor log shows the following errors:
Still unable to load MEF component DLL: Could not load file or assembly 'Microsoft.VisualStudio.CppSvc.Internal, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CodeAnalysis\Microsoft.VisualStudio.CodeAnalysis.VCPlugin.dll
Still unable to load MEF component DLL: Could not load file or assembly 'Microsoft.Windows.Simulator.Client, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\platform\diagnosticshub\Microsoft.DiagnosticsHub.VisualStudio.Package.dll
Still unable to load MEF component DLL: Could not load file or assembly 'Microsoft.VisualStudio.VC.RecommendationProvider, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\EXTENSIONS\MICROSOFT\INTELLICODE\IntelliCodeCpp.dll
I have tried to restart visual studio, restart windows, repair visual studio, uninstall visual studio and install it again. I have run the netFxRepairTool. Still running into the issue.
The files, that are mentioned in the log are all present at the expected location.
...ANSWER
Answered 2021-Jan-23 at 16:35I was able to get rid of the errors that are shown in the activity log by doing the following:
- I have deinstalled .NET Core SDK 1.0.0 (x64) Installer (x64)
- Repaired Visual Studio
- Restarted Windows
- Installed .NET desktop environment (via visual studio installer)
Now all errors in the activity log are gone, but Visual studio is still not working. It is still showing the same error as before:
There was an error activating the remote language server, c#/Visual Basic Language Server client.
Now I have the following warnings in my activity log (these havn't been there before):
Request for "Microsoft.VisualStudio.Shell.Internal.SettingsManager (1.0)" from Process denied because the service is only exposed RemoteExclusiveClient, LiveShareGuest.
Request for proxy to "Microsoft.VisualStudio.Shell.Internal.SettingsManager (1.0)" is declined: ServiceAudienceMismatch.
Then I removed Visual Studio 2019 and installed Microsoft Visual Studio Community 2019 Preview 3.0. Now everything is up and running again. Please be aware that it wasn't enough to install the preview in parallel to the old version. The old version had to be removed first, before the error disappeared.
QUESTION
I believe the problem is running the code not importing, as IntelliCode recognizes the module and functions
So here is the structure of my files
...ANSWER
Answered 2021-Feb-24 at 20:10When you run python a.py
, python searches for modules relative to the address a.py
is in, which in your example is the root address. That is why you can import b.py
and c.py
using tests.b
and pages.c
, no matter which file the import code is in (be it a.py
, b.py
, or c.py
).
However, when you run b.py
or c.py
, python's module search scope is relative to the address those files are in. Therefore, when you run b.py
, it looks for a pages
folder inside the tests
folder, which obviously does not exists.
Even if you try using ..
, you will receive a ValueError: Attempted relative import in non-package
. If you really want to import something from another python file in a sibling directory, I suggest you read this thread:
How to fix "Attempted relative import in non-package" even with __init__.py
QUESTION
I'm trying to use Live Unit Testing with my nUnit tests, but it crashes every time I start it. It crashes whether I start it manually or on solution load. I've restarted VS multiple times, reinstalled it, deleted the persisted data per this answer and now I'm out of ideas.
Output Window ...ANSWER
Answered 2021-Jan-09 at 20:20I ended up with an unused Nuget reference in my .csproj file - not sure why that would make a difference, but when I removed the reference, Live Unit Testing started working again.
¯\_(ツ)_/¯
QUESTION
I installed Raspbian Lite and Samba on my Raspberry Pi 4b. Below is my smb.conf file.
...ANSWER
Answered 2021-Jan-04 at 11:07I was able to fix this by reinstalling VS Code.
QUESTION
I'm aware that I can install vs2019 by checking the option in GUI interaction. Actually, I've setup a box this way. I'm trying another way.
Per ms doc I can do the job from command line.
...ANSWER
Answered 2021-Jan-04 at 01:14Previously saved .vsconfig
installation configurations can be installed or added with the --config
command line option. From the Using --config examples:
Using
--config
to install the workloads and components from a previously saved installation configuration file:
QUESTION
I am trying to edit the LaunchScreen.storyboard in my iOS project of my Xamarin Forms solution in Visual Studio (VS) for Windows . When I double click the storyboard to edit it, I receive the error message as follows:
"The iOS Designer requires an active connection to a Mac server. Please connect to a Mac to enable the designer."
However, I am connected to my Mac build server.
I have seen some older posts where there are mismatches between the Mac build server and the Windows development box so I checked for updates to Visual Studio on the Mac. There were some so I installed them. Then when I re-opened my project in Visual Studio for Windows and tried to connect to the Mac, I receive the error message as follows:
So I clicked to have Visual Studio correct the miss-match error and now I am back to the same error message saying "Something went wrong".. as shown above.
I have checked for updates to VS on Windows and there are currently no updates. (I really hate it when Microsoft release incompatible updates like this.. ARG!!!)
Here are the details for the Windows VS:
Microsoft Visual Studio Professional 2019 Version 16.8.2 VisualStudio.16.Release/16.8.2+30717.126 Microsoft .NET Framework Version 4.8.04084
Installed Version: Professional
Visual C++ 2019 00435-20050-31374-AA182 Microsoft Visual C++ 2019
ADL Tools Service Provider 1.0 This package contains services used by Data Lake tools
ASA Service Provider 1.0
ASP.NET and Web Tools 2019 16.8.553.28003 ASP.NET and Web Tools 2019
ASP.NET Core Razor Language Services 16.1.0.2052803+84e121f1403378489b842e1797df2f3f5a49ac3c Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2019 16.8.553.28003 For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 16.8.553.28003 Azure App Service Tools v3.0.0
Azure Data Lake Node 1.0 This package contains the Data Lake integration nodes for Server Explorer.
Azure Data Lake Tools for Visual Studio 2.6.1000.0 Microsoft Azure Data Lake Tools for Visual Studio
Azure Functions and Web Jobs Tools 16.8.553.28003 Azure Functions and Web Jobs Tools
Azure Stream Analytics Tools for Visual Studio 2.6.1000.0 Microsoft Azure Stream Analytics Tools for Visual Studio
C# Tools 3.8.0-5.20567.16+53c5d7d3cf13d88978744a32a27c5f8350a8400a C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Extensibility Message Bus 1.2.6 (master@34d6af2) Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
Fabric.DiagnosticEvents 1.0 Fabric Diagnostic Events
IntelliCode Extension 1.0 IntelliCode Visual Studio Extension Detailed Info
Microsoft Azure HDInsight Azure Node 2.6.1000.0 HDInsight Node under Azure Node
Microsoft Azure Hive Query Language Service 2.6.1000.0 Language service for Hive query
Microsoft Azure Service Fabric Tools for Visual Studio 16.0 Microsoft Azure Service Fabric Tools for Visual Studio
Microsoft Azure Stream Analytics Language Service 2.6.1000.0 Language service for Azure Stream Analytics
Microsoft Azure Stream Analytics Node 1.0 Azure Stream Analytics Node under Azure Node
Microsoft Azure Tools 2.9 Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.30924.1
Microsoft Continuous Delivery Tools for Visual Studio 0.4 Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft Library Manager 2.1.113+g422d40002e.RR Install client-side libraries easily to any web project
Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0 Microsoft Visual C++ Wizards
Microsoft Visual Studio Process Editor 1.0 Process Editor for Microsoft Visual Studio Team Foundation Server
Microsoft Visual Studio Tools for Containers 1.1 Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Microsoft Visual Studio VC Package 1.0 Microsoft Visual Studio VC Package
Mono Debugging for Visual Studio 16.8.43 (00471f8) Support for debugging Mono processes with Visual Studio.
NuGet Package Manager 5.8.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info
SQL Server Data Tools 16.0.62010.06180 Microsoft SQL Server Data Tools
ToolWindowHostedEditor 1.0 Hosting json editor into a tool window
TypeScript Tools 16.0.21016.2001 TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 3.8.0-5.20567.16+53c5d7d3cf13d88978744a32a27c5f8350a8400a Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual C++ for Cross Platform Mobile Development (Android) 16.0.30608.117 Visual C++ for Cross Platform Mobile Development (Android)
Visual F# Tools 16.8.0-beta.20507.4+da6be68280c89131cdba2045525b80890401defd Microsoft Visual F# Tools
Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Container Tools Extensions 1.0 View, manage, and diagnose containers within Visual Studio.
Visual Studio Tools for Containers 1.0 Visual Studio Tools for Containers
Visual Studio Tools for Kubernetes 1.0 Visual Studio Tools for Kubernetes
VisualStudio.DeviceLog 1.0 Information about my package
VisualStudio.Foo 1.0 Information about my package
VisualStudio.Mac 1.0 Mac Extension for Visual Studio
Xamarin 16.8.000.255 (d16-8@d002176) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 16.8.0.507 (remotes/origin/d16-8@e87b24884) Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Templates 16.8.112 (86385a3) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK 11.1.0.17 (d16-8/c0e2b8e) Xamarin.Android Reference Assemblies and MSBuild support. Mono: be2226b Java.Interop: xamarin/java.interop/d16-8@79d9533 ProGuard: Guardsquare/proguard/proguard6.2.2@ebe9000 SQLite: xamarin/sqlite/3.32.1@1a3276b Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-8@2fb1cbc
Xamarin.iOS and Xamarin.Mac SDK 14.4.1.3 (e30c41de3) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Here are the details for VS on the Mac === Visual Studio Professional 2019 for Mac ===
Version 8.8.2 (build 41) Installation UUID: 7927aa3f-75df-48d3-a901-74299635ff3e GTK+ 2.24.23 (Raleigh theme) Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
...ANSWER
Answered 2020-Dec-08 at 16:27So according to Microsoft here is the solution:
See https://developercommunity.visualstudio.com/comments/1255414/view.html for a work around. Basically, disconnect from Mac, Forget Mac, Add mac again via IP Address. Downside is that you get 2 connection options to the same Mac.
As a heads up - you may need to do the forget then reconnect to the Mac when you open a different project you want to edit the storyboard for even if you are already connected to the Mac by IP address. Basically, if you ever get the error, disconnect from the Mac - forget the Mac then reconnect to it by IP address.
QUESTION
I have tried exporting my C++ formatting settings into a .editorconfig but with the 2 methods I have attempted, the config is almost completely blank except for a brief comment header and the language file format selectors.
Using the method described here:
https://stackoverflow.com/a/51437947/2033725
Generates an editorconfig that simply has the following in it:
...ANSWER
Answered 2020-Dec-07 at 07:00QUESTION
By "macro" I mean simple values like: "#define FOO 123".
I installed VS Code (not visual studio), and the C/C++ and Visual Intellicode extensions.
I have a folder of a project created in another IDE which I'm still going to use to debug and more, specifically geared to certain embedded targets. That IDE and its config code generator / vendor libraries make use of the concept of global defines. (It's Eclipse based). E.g. there are some #define's which are visible by every source file without them including any headers for it: it gets passed to the compiler as well as the IDE's "live" error checking engine.
Some of the header files that are auto-generated or come as a library from the vendor are set up such that e.g. such a global #define will select code for which concrete hardware target, out of a line of targets that's covered by the library, will be compiled.
So I open that folder in VS Code, and open a source file out of the folder. The live error checker of VS Code underlines certain types. It can find them (Ctrl+Lclick), but they are marked as "undefined". Presumably because it has no knowledge of those global defines, and hence none of the target-specific code is enabled by its compile switch.
I found a SO question that was about adding defines to a makefile project, for building. That doesn't help here, I do not want to build with VS Code. I'd like the types be known to the VS Code 'live' error checker and hence visual indicators of not-really-problems to disappear.
Edit: And of course, auto-completion also does not work for the "undefined" types, which I'd like to fix, too.
Is that possible / how?
...ANSWER
Answered 2020-Aug-31 at 09:20Press Ctrl+Shift+P to open the command window, then, if you installed the C/C++ extension before, there will be several C/C++ settings (how many seem to depend on what kind of sources are in the folder you opened for the workspace). From there, you can select:C/C++: Edit Configurations (UI)
On the then opening tab page, you will see settings like compiler path and a selection of compiler-specific intellisense modes. Scroll somewhat below that, and there will be the Define directives box. Easy to spot by the 3 default predefined items in there: _DEBUG, UNICODE, _UNICODE. See yellow frame in the center of the image below. Don't get distracted by the red box. (sorry it's not English - but the sizes and positions of the boxes should give some orientation.)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install intellicode
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page