Questions about VS as an IDE
-
Here is some background info: I code C++ for unix at my job. I have my directory shared via samba to my windows desktop. I have VS setup to use as my IDE. Here is one question: We save our files as *.cc instead of *.cpp and VS doesn't recognize this as a C++ file therefor I get no syntax highlighting and all that other cool stuff. Is there a way to add an extension (*.cc) to the list of C++ files? Here is another question: I added another folder to my project called libs where I put all of our classes. We have a class called Cstring and if I type Cstring:: it will pop up the box with all of member functions associated with that class. But if I do something like Cstring str; then type str. it does not pop up that nifty little box. Anyone know how to fix this? (Note: I am not actually compiling the files on my windows machine. Just saving them and then compiling on my unix term.) Thanks in advance, Jack
There are 10 types of people in this world, those that understand binary and those who don't.
-
Here is some background info: I code C++ for unix at my job. I have my directory shared via samba to my windows desktop. I have VS setup to use as my IDE. Here is one question: We save our files as *.cc instead of *.cpp and VS doesn't recognize this as a C++ file therefor I get no syntax highlighting and all that other cool stuff. Is there a way to add an extension (*.cc) to the list of C++ files? Here is another question: I added another folder to my project called libs where I put all of our classes. We have a class called Cstring and if I type Cstring:: it will pop up the box with all of member functions associated with that class. But if I do something like Cstring str; then type str. it does not pop up that nifty little box. Anyone know how to fix this? (Note: I am not actually compiling the files on my windows machine. Just saving them and then compiling on my unix term.) Thanks in advance, Jack
There are 10 types of people in this world, those that understand binary and those who don't.
I have encountered your Cstring::/ Cstring str / str. problem with the autocomplete as well. Sometimes I find it works for non-C++ native classes and sometimes it doesn't. I suspect that it is a bit flakey. Unfortunately I cannot help you, but would appreciate anyone else's input who can shed some light on this...
-
I have encountered your Cstring::/ Cstring str / str. problem with the autocomplete as well. Sometimes I find it works for non-C++ native classes and sometimes it doesn't. I suspect that it is a bit flakey. Unfortunately I cannot help you, but would appreciate anyone else's input who can shed some light on this...
-
Here is some background info: I code C++ for unix at my job. I have my directory shared via samba to my windows desktop. I have VS setup to use as my IDE. Here is one question: We save our files as *.cc instead of *.cpp and VS doesn't recognize this as a C++ file therefor I get no syntax highlighting and all that other cool stuff. Is there a way to add an extension (*.cc) to the list of C++ files? Here is another question: I added another folder to my project called libs where I put all of our classes. We have a class called Cstring and if I type Cstring:: it will pop up the box with all of member functions associated with that class. But if I do something like Cstring str; then type str. it does not pop up that nifty little box. Anyone know how to fix this? (Note: I am not actually compiling the files on my windows machine. Just saving them and then compiling on my unix term.) Thanks in advance, Jack
There are 10 types of people in this world, those that understand binary and those who don't.
To force a file to be recognised as C++, use the /Tp option in your settings. Of course, you'll need to create a dummy project to have settings - put all your .cc files into it, and VC should be happy (it may even provide intellisense for you)