i have a problem with Visual Studio Code for Mac OS
Since my small industry where i work, decided one week ago to change from Windows to Apple problems started.
I installed VS code in my Apple laptop but when i started to programming, i saw that if i make a Syntax error, the IDE doesn't highlight it (i write programs in C).
For example if i write: println("hello word") without ; VS doesn't show a red underline and a message (for example "Syntax error missing ;")
i searched on internet, and i found that is a problem of "IntelliSense" i think. I also tried some solutions, but without any result.
thanks for your answers
Setting up VS code for C / C++ on mac is a bit of a pain. I've found this page from MS to give a thorough run through on getting setting up, and then you can also follow this guide which will take you through setting up project configurations and in your case intellisense.
Related
I am trying to do some assembly coding, I call the functions from C language. The code itself runs fine, but I have two enormous problems that I cannot to tackle for quite a long time now. First of them is syntax-highlighting - I installed two different (one at the time) asm highlighting extensions to visual studio 2015 enterprise, both of them didn't work. Before I installed the 2015 version I had 2013 Ultimate and the highlighting worked fine there. I tried to delete specific files responsible from registry etc but it didn't help me achieve absolutely anything. Tried to reinstall or update the extensions is well.
Another problem I have is something that pretty much started happening for first time 3 hours ago, in a solution when I have an asm file it is fine, I can edit it freely, run it, whatever. But once I switch off visual studio and run it again in the moment when I try to open the asm file in visual studio the file is no longer in clean assembly but in OP codes written in hexadecimal and along it there is list of the memory cell in which each op is in... When I make new asm file in the solution it is fine but once I restart visual studio same thing happens. I tried to look through all the common options in the top menu bar but there seems not to be anything helpful to me in this situation....
Desperately I tried to google both of those things (first one for quite extended period of time) but it seems like some of the problems I have encountered could possibly be related to 2015 enterprise version of visual studio :(
EDIT// OK I MANAGED TO FIX THE SECOND PROBLEM - right click the .asm file and use Open With and choose another editor!!!
Help please ;(
AsmDude will not work when .asm files are associated with an editor (see this issue here). If you still experiencing problems with AsmDude, consider opening an issue on Github. I'm happy to help you there.
I'm writing a program in C using Visual Studio 2010, and I am getting the following error:
U1095: expanded command line '(here come includes-includes-includes)'.
Some of my colleagues get the same error while others do not. The only easy feasible solution I've tried is to update NMAKE itself from a shady website (NMAKE is very hard to find).
Erasing include entries helps, but eventually we hit the limit again. One hack that works is to use all the includes in a single file per Microsoft's offering and read from that file but I'd prefer to not have to do that.
Is there an official way to update nmake without installing the Windows SDK or Visual Studio 2015?
I would not recommend using anything in programming in general that you "downloaded from a shady source". That sounds like a good way to embed viruses in your shipped code unknowingly. There is no nmake standalone, so you will be forced to use the one that ships with Visual Studio.
Some things you could try:
Attempt using 32-bit and 64-bit versions of nmake and see if you get different results.
Get a more recent version of Visual Studio and see if it works better there.
Thanks a lot for your responses, guys.
Manipulations with nmake didn't help at all.
The answer is: to completely erase a sandbox and get a clean one. So it wasn't MS-VS-2010 problem standalone, but a combination of problems between MS-VS and MKS/PTC Integrity.
I'm not very well versed with programming myself. I'm currently a student and we're learning c.
My issue with Visual Studio 2012 now is though that out of the blue the debugger is not working anymore.
Whenever I try to debug it just loads endlessly and the only thing I can do is to use the task manager to close visual studio.
Thing is this happened with 2015 as well and I cannot open any of my old projects' .exe files.
I have tried the following:
1. Restart computer numerous times.
2. Repair Visual Studio
3. Try out 2015(which did the exact same thing)
4. Uninstall everything Visual Studio related and reinstall 2012
5. Google for possible solutions, landed here and tried to search but nothing helped as of yet.
Hope someone can help me with my problem.
I'm running win7 64bit. Most of the programms I tried didn't even have any scetchy code. Mostly a main function and just a return.
/edit
Avast was the cause of this in case anyone finds this topic.
I'm trying to set up an IDE for C programming.
I have tried netbeans, VS, Dev, codeblocks, eclipse and more!
Nothing seems to work, in every case as soon as I try to run/compile I get an error pertaining to the compiler/debugger not being found.
I have downloaded multiple compilers one of which I literally transferred from another computer and still -nothing- works.
I have done much more complicated things involving JAR imports with Jbox in Java and yet for this the solution eludes me.
Does anyone know of a step-by-step tutorial for setting this up?
I'm running windows8 64bit.
Hope the links will be helpful. I found Codeblocks is very simple and light weight compiler for C/C++.
https://www3.ntu.edu.sg/home/ehchua/programming/howto/CodeBlocks_HowTo.html
http://www.wikihow.com/Install-and-Configure-Simple-Directmedia-Layer-%28SDL%29
I'm trying to learn Cuda and its very interesting but I'm having problems creating code without a bit of help from an IDE. I know Java/Python but I'm unfamiliar with C/C++ so I have been using eclipse and Xcode to help me with commands and finding things(via code code completion). I can't seem to get these options for CUDA?
I have seen examples and can build them find(nvcc is working) but without the IDE to help catch some of my mistakes I'm a bit lost editing the code in just a text editor. I found a toolkit plugin for eclipse but although it seems to install I think its for a older build of eclipse because most of the options in the instructions do not match my version(Indigo). Nvidia has a plugin for Visual studio only on their site(I'd rather not install windows on my mac to use Cuda).
I'm sorry if this sounds bad but I'm curious to how people are developing cuda on Mac's. I don't care what IDE I use as long as it helps me see the options and warn me if I have syntax issues,etc..(I'm not the best programmer but switching IDE's for me has just been a matter of finding out where things are so I'm really fine with any solution as long as it helps me as I'm learning).
Nsight Eclipse Edition is available as a part of the CUDA Toolkit 5.0 (no additional download required).
Qt Creator!
You can read Qt Creator + CUDA + Linux for inspiration on how to setup the build environment on Mac OS X.
You could think about using JCuda:
http://www.jcuda.de/
There is XCode plug-in for CUDA development. I found it there. There is the main discussion on nvidia.com
Visual Studio Code + this extension:
https://github.com/gangliao/VS-Code-Cuda.
For me, Visual Studio Code is my favorite IDE for every language I found out there