I'm so used to working with Eclipse for java related projects that I thought I'd work with Eclipse CDT for C-projects too. 'Show in Breadcrumbs' was a nifty little feature that would show what method the cursor currently is at (in Eclipse JAVA).
I don't see that option in Eclipse CDT. Is it in some way, hard to implement? The closest I could find to using the breadcrumbs feature was this :
Go to Outline pane, open its menu (down arrowhead on the top, right
side) and check the box "Link With Editor". Now the method name will
be highlighted to coincide with the cursor location.
From(source) : here.
Are there any other alternatives to get the Breadcrumbs feature working under Eclipse CDT?
No. :-(
The option Link with Editor is not only available in the Outline view, but also in the Project Explorer view, and others
You can use Mylyn, which also automatically links the Project Explorer view with the file/function you edit.
Related
I wonder if there is a support for C++ in Netbeans 9. This link shows C++ on screenshot (when creating new project). However, after installing, I don't have one.
I wonder if there is a support for C++ in NetBeans 9.
The answer to that is definitely no, and definitely yes...
No, in the sense that the use of C++ on NetBeans 9 is not currently supported by Apache, and it is done at your own risk. NetBeans is currently being handed over from Oracle to Apache, and they haven't got to the C/C++ part yet. See What's Happened to My Favorite NetBeans Plugins? for more information.
Yes, in the sense that it is technically feasible to do it; the NetBeans 9 IDE allows you to use C/C++.
This is what you need to do:
Step 1 of 2: Make C/C++ available as a plugin.
Tools > Plugins > Settings tab > click the Add button.
On the Update Center Customizer screen:
Enter some value in the Name field (e.g. "My plugins"),
Enter http://updates.netbeans.org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz in the URL field
Click the OK button.
This should create a new entry in the Configuration of Update Centers list in the Settings tab.
Checking that new entry should instantly add plugins to the Available Plugins tab.
Click the Available Plugins tab, then click the Category column to sort the entries by category.
The Name of the entry at the top of the list should be C/C++. If so, you have successfully made the plugin available:
Step 2 of 2: Install the C/C++ plugin.
Check the C/C++ entry shown in the screen shot above, and then click the Install button.
Follow the wizard's instructions. The plugin will be downloaded and installed, and you will be required to restart NetBeans.
To confirm that C/C++ has been installed, click Tools > Plugins > **Installed tab. You should see an entry for the C/C++ plugin you just installed.
Also, verify that you can now create a C/C++ project through the Project wizard:
Notes:
The finer details on configuring C/C++ on NetBeans 9 (Tools > Options > C/C++) are unchanged from NetBeans 8.x. Refer to Configuring NetBeans IDE 8.0 for C/C++/Fortran for that.
Much of this answer has been copied from an answer I gave on problems with Tomcat on NetBeans 9, but the details are sufficiently different to merit a separate answer.
Netbeans 10 and 11 - adding C / C++ also works in the same fashion.
In Netbeans go to Tools->Plugins->Settings
Entry NetBeans 8.2 Plugin Portal is already present.
Click the checkbox next to this entry.
Switch to Available Plugins tab, click Check for Newest.
C / C++ is now on the list.
Computer that this is done is on Windows 10 x64.
You have to install C++ plugin (Tools -> Plugins)
Background:
I'm a big fan of using Codeblocks to do C++. I have just upgraded to Ubuntu 14.04 LTS and installed Codeblocks via the Ubuntu Software Centre.
My Problem: All is going great, apart from one minor thing which is missing. When I double click on a variable, other instances of that variable used to be highlighted too. This was an extremely useful way I debugged my programs. But it isn't here on the new version for some reason.
I would like the feature shown in the screenshot below to be set. Where is the option?
Please can someone help me out, maybe there's an option I'm missing?
Install the contrib plugins for Code::Blocks IDE (codeblocks-contrib) to enable occurrences highlighting in Code::Blocks.
sudo apt install codeblocks-contrib
In Code::Blocks select Settings -> Editor -> Occurrences Highlighting (scroll down in the pane on the left side to find it) and then put a check mark in the three checkboxes under Highlight occurrences of selection as shown in the below screenshot.
The three checkboxes to select are:
Highlight occurrences
Case sensitive
Whole words only
Then click the OK button to apply the changed settings. You can also put a check mark to the left of the two settings under Permanently highlighted occurrences in order to apply these settings.
karel -- Thank you very much for your answer. I believe this will be the thing which will solve most people's question.
For completion, I would like to document my different answer (for other forum users).
I simply had to install the optional extras on the Ubuntu software centre alongside the Codeblocks installation. The menu "occurence highlighting" did not appear without doing this.
Best wishes.
What are the steps involved in integrating Clang within NetBeans? I would like to also see the Clang error and warning messages from within NetBeans. This will be used mainly for developing in C.
NetBeans 7.2 has supported Clang natively.
Just open up Options Window, switch to C/C++ section, and add a new Tool Collection. Type: /usr/bin in Base Directory, and select "CLang" in the combo box.
I have been using Clang to build my project, and NetBeans works with Clang perfectly.
Here is a link to the bug report for clang support in netbeans at netbeans.org. Track this bug for official netbeans support.
If you have downloaded and installed the C/C++ plug-in for NetBeans 8+ following the instructions on this page:
https://netbeans.org/community/releases/80/cpp-setup-instructions.html
you have a C/C++ item in the upper menu of the Tools > Options panel. 1.) Click it.
2.) Now under the list called "Tool Collection" (on the left) click the left button "Add".
3.) In the window that opens, enter the "/usr/bin" as a base directory.
4.) If you have a CLang compiler installed right the "Tool Collection Family" drop-down menu will show a CLang collection. Choose it.
5.) Click "OK" in the pop-up window, then click "OK" in the "Options" panel/window.
Enjoy.
This probably has a really obvious answer, but I can't seem to find it. I am trying to use Xcode 4 to program with C++, and I want to create a project, build, and run it through Xcode 4 like I do for other languages. My problem is that I can't find the right type of project to do this.
Check this out : http://www.youtube.com/watch?v=Ey8LK7P1K94 at 2:30 he creates a C++ project.
Or try this:
Open XCode.
File/New Project...
In the "New Project" Assistant, expand the "Command Line Utility" group.
Select "C++ Tool"
Click "Next"
Give a project name and directory, then click "Finish".
Press Cmd-Shift-R to open the Console window. Output will appear there.
Click the "Build and Go" toolbar button.
If you click around in the Mac OS part of New Project, there are a couple of options that I can see with a brief glance. Under Framework & Library there is an STL C++ Library you can access, and then under System Plug-in there's a barebones c++ plug-in you can use.
Is that what you mean, or am I misinterpreting the question?
If you take a look at Google Chrome's configuration menu you will see several neat UI features. Specifically the edit and zoom menu items. How can I implement a similar version of Chromes zoom menu item inside Qt 4.7.1.
Since Chrome is based on the open source project Chromium you can download the source code and see exactly how Google have done it.
Chromium is made on VC++
link here -> http://cotsog.wordpress.com/2009/11/08/how-to-compile-google-chrome-with-visual-c-2008-express-edition/