I am doing some C++ projects in visual c++ using Visual Studio Pro 2010. But unfortunately, auto complete support, automatic brace completion are not there. For example, If you type "in", there is not auto completion pop up windows showing that "Int", if u type "ret", nothing is shown for "return", these simple auto completion feature are available in netbeans, eclipse. But not in VS.
I used Visual assist x for a month but it is not a free extension. Can someone help???? is there any free pluggin that can do these things in C++...
There are also good pluggin that serves these issues like resharper. But all these works for C# and VB
Auto completion should be available trough Visual Studio directly. As for extra options this may not do all that you're used to with Visual Assist X, but it's free and it helps you make some changes to the code very easily: DevExpress Refactor! for C++
Related
I have been looking high and low for a way to auto collapse to definitions in visual studio 2012 when you open a file.
I found a solution for VS2010 here Any way to auto collapse to definitions whenever you close a document? but that requires a Macros which has been taken out in VS2012.
Any Solution would be much appreciated!
Yes, macros are definitely gone from Visual Studio 2012.
Not exactly what you requested, but the Ctrl-M, Ctrl-O keyboard shortcut is fast.
Third party tools like CodeRush! or Resharper may help here. I know that CodeRush is very customizable.
You can also create your own Visual Studio Extension. Extensions are more powerful than macros, but have a bit of a learning curve.
I'm primarily a Java developer and I've recently started developing apps for Windows Store using Visual Studio 2012. When I started coding several years ago, I used Visual Studio 2008. I didn't think anything of certain features until I started doing Java in Eclipse. Anyway, in Eclipse, I can press "tab" to jump out of quotes or brackets. The only Visual Studio 2012 feature I could find remotely similar to this was included in Visual Studio 2012 Productivity Power Tools. It allows me to do Shift+Enter anywhere on a line, and it'll add a semicolon to the end of the line and go to the next one. While this is useful, it's not ideal in many situations. I am also using Resharper and have found no such setting in there. Thanks
The easiest way to jump out of the automatically inserted quote or bracket is to type the closing quote or bracket, i.e.: " followed by " or ( followed by ). You could also use the right arrow key. If you have resharper then you can use CTRL+SHIFT+ENTER to auto complete the current statement.
If you are a fan of keyboard shortcuts to move around your code then try the VsVim Extension.
I have been evaluating Resharper and have heard how great it is. I agree that its code inspection is great, but I have to seriously disagree with the greatness of most other features.
All of the warts it adds to Visual Studio are killing my productivity. It has eaten Visual Studio's shortcut keys even though I told it not to, and even when I remap "Find All References" to Visual Studio, Resharper still coopts it.
We would like to be able to use the Code Inspection functionality and absolutely nothing else. Is this possible through documented or undocumented methods?
If problem only in keyboard shortcuts, you can change Keyboard scheme to Visual Studio. Go to menu Resharper -> Options -> Keyboard and Menus. Check Visual Studio Keyboard scheme at right part of window and apply it.
One thing that has always annoyed me in Visual C++ is the fact that, unlike Visual C#, intellisense does not automatically display when a new line (or equals sign, etc) is entered, so I must press Ctrl+Space every time.
Is there any way to change this? It has gotten to the point where I have even considered using something like AutoIt to detect when I press Enter and insert a Ctrl+Space accordingly. Obviously, that is far from ideal.
Has the Visual Studio crew really overlooked such a glaringly obvious mistake, or have I simply missed an option somewhere?
That is by design behavior on the part of C++ IntelliSense. There is no option to change it. Alternative behaviors are supported by 3rd party extensions like Visual Assist X, however express editions of Visual Studio do not support addins and tool extensions.
I understand the C++ and C syntax, but im a little unsure how i am supposed to code in the VS2010 environment, when i create a project i am presented with folders such as headers and sources.
What c++ code goes into which folder?
Also, how would it work for C?
.h files go into headers, .cpp files go into sources.
Project->Add Class will do the work for you
I agree that Visual Studio can be a bit overwhelming if you're used to code C/C++ using a simple text editor and calling the compiler via the command line.
Decide for yourself how you want to continue with Visual Studio.
If you want to create simple C/C++ applications (consisting of only 1 or 2 source files), just create an empty project and choose "Add Item" to add a source (.c, .cpp) or include (.h) file.
If you want to evolve to more complex applications with e.g. using the MFC libraries, .Net, WPF, ... learn how to use the Visual Studio wizards. These wizards can set up a complete environment for you so you only have to fill in your business logic. Consider reading a Visual Studio 2010 tutorial to get you started.