Multiple problems with C++ IDEs. Netbeans not working. Codeblocks Indenting not working












0















Probably going to be deleted but I can't post 3 questions for this...




  1. Netbeans not working:
    Netbeans Screen Shoot With Output Error


Ok, so I don't know what is happening, but I can't use NetBeans at all. Anything I would do, the program says RUN FINISHED and I won't work... I can't even input and output an integer...



Input/Output a variable



The second problem with NetBeans, you can already see in the first picture, the methods, and some words are underlined with red for no reason, the code works perfectly on code blocks!





  1. Codeblocks indenting is working like crap if I write:



    int main()




and then type { and press enter I get this: this



And I have to press one more time to enter for the second bracket to go down and press Up Arrow to go back on the line and press Tab, this is horrible.



If you know any IDE I can use, without spending an hour to install them, that would be great, and maybe looks decent and not so 2002 like some things I have experienced since I got Linux...










share|improve this question

























  • KDevelop en QtCreator are probably the most modern looking and they do not come with the java bloat of netbeans and eclipse.

    – Eelke
    Feb 6 at 17:21











  • Ok, I will try KDevelop, and QtCreator is for, well, QtC++ and I am doing only console applications (I mean algorithms)!

    – SKREFI
    Feb 6 at 17:40


















0















Probably going to be deleted but I can't post 3 questions for this...




  1. Netbeans not working:
    Netbeans Screen Shoot With Output Error


Ok, so I don't know what is happening, but I can't use NetBeans at all. Anything I would do, the program says RUN FINISHED and I won't work... I can't even input and output an integer...



Input/Output a variable



The second problem with NetBeans, you can already see in the first picture, the methods, and some words are underlined with red for no reason, the code works perfectly on code blocks!





  1. Codeblocks indenting is working like crap if I write:



    int main()




and then type { and press enter I get this: this



And I have to press one more time to enter for the second bracket to go down and press Up Arrow to go back on the line and press Tab, this is horrible.



If you know any IDE I can use, without spending an hour to install them, that would be great, and maybe looks decent and not so 2002 like some things I have experienced since I got Linux...










share|improve this question

























  • KDevelop en QtCreator are probably the most modern looking and they do not come with the java bloat of netbeans and eclipse.

    – Eelke
    Feb 6 at 17:21











  • Ok, I will try KDevelop, and QtCreator is for, well, QtC++ and I am doing only console applications (I mean algorithms)!

    – SKREFI
    Feb 6 at 17:40
















0












0








0








Probably going to be deleted but I can't post 3 questions for this...




  1. Netbeans not working:
    Netbeans Screen Shoot With Output Error


Ok, so I don't know what is happening, but I can't use NetBeans at all. Anything I would do, the program says RUN FINISHED and I won't work... I can't even input and output an integer...



Input/Output a variable



The second problem with NetBeans, you can already see in the first picture, the methods, and some words are underlined with red for no reason, the code works perfectly on code blocks!





  1. Codeblocks indenting is working like crap if I write:



    int main()




and then type { and press enter I get this: this



And I have to press one more time to enter for the second bracket to go down and press Up Arrow to go back on the line and press Tab, this is horrible.



If you know any IDE I can use, without spending an hour to install them, that would be great, and maybe looks decent and not so 2002 like some things I have experienced since I got Linux...










share|improve this question
















Probably going to be deleted but I can't post 3 questions for this...




  1. Netbeans not working:
    Netbeans Screen Shoot With Output Error


Ok, so I don't know what is happening, but I can't use NetBeans at all. Anything I would do, the program says RUN FINISHED and I won't work... I can't even input and output an integer...



Input/Output a variable



The second problem with NetBeans, you can already see in the first picture, the methods, and some words are underlined with red for no reason, the code works perfectly on code blocks!





  1. Codeblocks indenting is working like crap if I write:



    int main()




and then type { and press enter I get this: this



And I have to press one more time to enter for the second bracket to go down and press Up Arrow to go back on the line and press Tab, this is horrible.



If you know any IDE I can use, without spending an hour to install them, that would be great, and maybe looks decent and not so 2002 like some things I have experienced since I got Linux...







ide






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 6 at 17:31









mature

2,1023830




2,1023830










asked Feb 6 at 16:26









SKREFISKREFI

11




11













  • KDevelop en QtCreator are probably the most modern looking and they do not come with the java bloat of netbeans and eclipse.

    – Eelke
    Feb 6 at 17:21











  • Ok, I will try KDevelop, and QtCreator is for, well, QtC++ and I am doing only console applications (I mean algorithms)!

    – SKREFI
    Feb 6 at 17:40





















  • KDevelop en QtCreator are probably the most modern looking and they do not come with the java bloat of netbeans and eclipse.

    – Eelke
    Feb 6 at 17:21











  • Ok, I will try KDevelop, and QtCreator is for, well, QtC++ and I am doing only console applications (I mean algorithms)!

    – SKREFI
    Feb 6 at 17:40



















KDevelop en QtCreator are probably the most modern looking and they do not come with the java bloat of netbeans and eclipse.

– Eelke
Feb 6 at 17:21





KDevelop en QtCreator are probably the most modern looking and they do not come with the java bloat of netbeans and eclipse.

– Eelke
Feb 6 at 17:21













Ok, I will try KDevelop, and QtCreator is for, well, QtC++ and I am doing only console applications (I mean algorithms)!

– SKREFI
Feb 6 at 17:40







Ok, I will try KDevelop, and QtCreator is for, well, QtC++ and I am doing only console applications (I mean algorithms)!

– SKREFI
Feb 6 at 17:40












1 Answer
1






active

oldest

votes


















0














The eclipse-cdt package contains Eclipse features and plugins that are useful for C and C++ development. To install eclipse-cdt in all currently supported versions of Ubuntu open the terminal and type:



sudo apt install eclipse-cdt  


fos4cdt is an Eclipse plugin to format C/C++ source files on any save action. When you press Ctrl+S or click the Save button, the plugin formats saved files automatically. You can enable/disable auto formatting by a preference page and using shortcut keys.



fos4cdt can be installed in Eclipse from the Eclipse Marketplace. To open an Eclipse Marketplace window in Eclipse select Help -> Eclipse Marketplace -> search for fos4cdt -> click Browse for more solutions link to open http://marketplace.eclipse.org in a new tab in Eclipse -> click the house icon underneath the Eclipse icon to go to the fos4cdt download page.



enter image description here
before code formatting



enter image description here
after code formatting



I tested the fos4cdt Eclipse plugin against UniversalIndentGUI from the Ubuntu repositories. fos4cdt does a better job of pretty formatting code than UniversalIndentGUI. UniversalIndentGUI indents code logically, but except for fixing the indentations it does not do any other pretty formatting.






share|improve this answer


























  • I have tried it... It won't run, I get this error message: An error has occurred. See the log file /home/skrefi/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1549474619434.log And first this in the CLI: _Failed to load module "canberra-gtk-module" _ Decided, this time, to google that (actually before posting this I didn't use CLI and didn't see that error) and I reached this: askubuntu.com/questions/342202/… It is still not working, I can't even run Eclipse...

    – SKREFI
    Feb 6 at 17:37













  • I'm using Eclipse Version: Photon Release (4.8.0) in Ubuntu 18.04. You are using Eclipse Juno 3.8.

    – karel
    Feb 6 at 17:53













  • And how do I get Photon Release?

    – SKREFI
    Feb 6 at 20:58











  • Eclipse IDE for C/C++ Developers is harder to learn to use than Code::Blocks and more full-featured.

    – karel
    Feb 6 at 21:46













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1116143%2fmultiple-problems-with-c-ides-netbeans-not-working-codeblocks-indenting-not%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














The eclipse-cdt package contains Eclipse features and plugins that are useful for C and C++ development. To install eclipse-cdt in all currently supported versions of Ubuntu open the terminal and type:



sudo apt install eclipse-cdt  


fos4cdt is an Eclipse plugin to format C/C++ source files on any save action. When you press Ctrl+S or click the Save button, the plugin formats saved files automatically. You can enable/disable auto formatting by a preference page and using shortcut keys.



fos4cdt can be installed in Eclipse from the Eclipse Marketplace. To open an Eclipse Marketplace window in Eclipse select Help -> Eclipse Marketplace -> search for fos4cdt -> click Browse for more solutions link to open http://marketplace.eclipse.org in a new tab in Eclipse -> click the house icon underneath the Eclipse icon to go to the fos4cdt download page.



enter image description here
before code formatting



enter image description here
after code formatting



I tested the fos4cdt Eclipse plugin against UniversalIndentGUI from the Ubuntu repositories. fos4cdt does a better job of pretty formatting code than UniversalIndentGUI. UniversalIndentGUI indents code logically, but except for fixing the indentations it does not do any other pretty formatting.






share|improve this answer


























  • I have tried it... It won't run, I get this error message: An error has occurred. See the log file /home/skrefi/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1549474619434.log And first this in the CLI: _Failed to load module "canberra-gtk-module" _ Decided, this time, to google that (actually before posting this I didn't use CLI and didn't see that error) and I reached this: askubuntu.com/questions/342202/… It is still not working, I can't even run Eclipse...

    – SKREFI
    Feb 6 at 17:37













  • I'm using Eclipse Version: Photon Release (4.8.0) in Ubuntu 18.04. You are using Eclipse Juno 3.8.

    – karel
    Feb 6 at 17:53













  • And how do I get Photon Release?

    – SKREFI
    Feb 6 at 20:58











  • Eclipse IDE for C/C++ Developers is harder to learn to use than Code::Blocks and more full-featured.

    – karel
    Feb 6 at 21:46


















0














The eclipse-cdt package contains Eclipse features and plugins that are useful for C and C++ development. To install eclipse-cdt in all currently supported versions of Ubuntu open the terminal and type:



sudo apt install eclipse-cdt  


fos4cdt is an Eclipse plugin to format C/C++ source files on any save action. When you press Ctrl+S or click the Save button, the plugin formats saved files automatically. You can enable/disable auto formatting by a preference page and using shortcut keys.



fos4cdt can be installed in Eclipse from the Eclipse Marketplace. To open an Eclipse Marketplace window in Eclipse select Help -> Eclipse Marketplace -> search for fos4cdt -> click Browse for more solutions link to open http://marketplace.eclipse.org in a new tab in Eclipse -> click the house icon underneath the Eclipse icon to go to the fos4cdt download page.



enter image description here
before code formatting



enter image description here
after code formatting



I tested the fos4cdt Eclipse plugin against UniversalIndentGUI from the Ubuntu repositories. fos4cdt does a better job of pretty formatting code than UniversalIndentGUI. UniversalIndentGUI indents code logically, but except for fixing the indentations it does not do any other pretty formatting.






share|improve this answer


























  • I have tried it... It won't run, I get this error message: An error has occurred. See the log file /home/skrefi/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1549474619434.log And first this in the CLI: _Failed to load module "canberra-gtk-module" _ Decided, this time, to google that (actually before posting this I didn't use CLI and didn't see that error) and I reached this: askubuntu.com/questions/342202/… It is still not working, I can't even run Eclipse...

    – SKREFI
    Feb 6 at 17:37













  • I'm using Eclipse Version: Photon Release (4.8.0) in Ubuntu 18.04. You are using Eclipse Juno 3.8.

    – karel
    Feb 6 at 17:53













  • And how do I get Photon Release?

    – SKREFI
    Feb 6 at 20:58











  • Eclipse IDE for C/C++ Developers is harder to learn to use than Code::Blocks and more full-featured.

    – karel
    Feb 6 at 21:46
















0












0








0







The eclipse-cdt package contains Eclipse features and plugins that are useful for C and C++ development. To install eclipse-cdt in all currently supported versions of Ubuntu open the terminal and type:



sudo apt install eclipse-cdt  


fos4cdt is an Eclipse plugin to format C/C++ source files on any save action. When you press Ctrl+S or click the Save button, the plugin formats saved files automatically. You can enable/disable auto formatting by a preference page and using shortcut keys.



fos4cdt can be installed in Eclipse from the Eclipse Marketplace. To open an Eclipse Marketplace window in Eclipse select Help -> Eclipse Marketplace -> search for fos4cdt -> click Browse for more solutions link to open http://marketplace.eclipse.org in a new tab in Eclipse -> click the house icon underneath the Eclipse icon to go to the fos4cdt download page.



enter image description here
before code formatting



enter image description here
after code formatting



I tested the fos4cdt Eclipse plugin against UniversalIndentGUI from the Ubuntu repositories. fos4cdt does a better job of pretty formatting code than UniversalIndentGUI. UniversalIndentGUI indents code logically, but except for fixing the indentations it does not do any other pretty formatting.






share|improve this answer















The eclipse-cdt package contains Eclipse features and plugins that are useful for C and C++ development. To install eclipse-cdt in all currently supported versions of Ubuntu open the terminal and type:



sudo apt install eclipse-cdt  


fos4cdt is an Eclipse plugin to format C/C++ source files on any save action. When you press Ctrl+S or click the Save button, the plugin formats saved files automatically. You can enable/disable auto formatting by a preference page and using shortcut keys.



fos4cdt can be installed in Eclipse from the Eclipse Marketplace. To open an Eclipse Marketplace window in Eclipse select Help -> Eclipse Marketplace -> search for fos4cdt -> click Browse for more solutions link to open http://marketplace.eclipse.org in a new tab in Eclipse -> click the house icon underneath the Eclipse icon to go to the fos4cdt download page.



enter image description here
before code formatting



enter image description here
after code formatting



I tested the fos4cdt Eclipse plugin against UniversalIndentGUI from the Ubuntu repositories. fos4cdt does a better job of pretty formatting code than UniversalIndentGUI. UniversalIndentGUI indents code logically, but except for fixing the indentations it does not do any other pretty formatting.







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 6 at 17:18

























answered Feb 6 at 16:39









karelkarel

59.9k13129151




59.9k13129151













  • I have tried it... It won't run, I get this error message: An error has occurred. See the log file /home/skrefi/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1549474619434.log And first this in the CLI: _Failed to load module "canberra-gtk-module" _ Decided, this time, to google that (actually before posting this I didn't use CLI and didn't see that error) and I reached this: askubuntu.com/questions/342202/… It is still not working, I can't even run Eclipse...

    – SKREFI
    Feb 6 at 17:37













  • I'm using Eclipse Version: Photon Release (4.8.0) in Ubuntu 18.04. You are using Eclipse Juno 3.8.

    – karel
    Feb 6 at 17:53













  • And how do I get Photon Release?

    – SKREFI
    Feb 6 at 20:58











  • Eclipse IDE for C/C++ Developers is harder to learn to use than Code::Blocks and more full-featured.

    – karel
    Feb 6 at 21:46





















  • I have tried it... It won't run, I get this error message: An error has occurred. See the log file /home/skrefi/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1549474619434.log And first this in the CLI: _Failed to load module "canberra-gtk-module" _ Decided, this time, to google that (actually before posting this I didn't use CLI and didn't see that error) and I reached this: askubuntu.com/questions/342202/… It is still not working, I can't even run Eclipse...

    – SKREFI
    Feb 6 at 17:37













  • I'm using Eclipse Version: Photon Release (4.8.0) in Ubuntu 18.04. You are using Eclipse Juno 3.8.

    – karel
    Feb 6 at 17:53













  • And how do I get Photon Release?

    – SKREFI
    Feb 6 at 20:58











  • Eclipse IDE for C/C++ Developers is harder to learn to use than Code::Blocks and more full-featured.

    – karel
    Feb 6 at 21:46



















I have tried it... It won't run, I get this error message: An error has occurred. See the log file /home/skrefi/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1549474619434.log And first this in the CLI: _Failed to load module "canberra-gtk-module" _ Decided, this time, to google that (actually before posting this I didn't use CLI and didn't see that error) and I reached this: askubuntu.com/questions/342202/… It is still not working, I can't even run Eclipse...

– SKREFI
Feb 6 at 17:37







I have tried it... It won't run, I get this error message: An error has occurred. See the log file /home/skrefi/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1549474619434.log And first this in the CLI: _Failed to load module "canberra-gtk-module" _ Decided, this time, to google that (actually before posting this I didn't use CLI and didn't see that error) and I reached this: askubuntu.com/questions/342202/… It is still not working, I can't even run Eclipse...

– SKREFI
Feb 6 at 17:37















I'm using Eclipse Version: Photon Release (4.8.0) in Ubuntu 18.04. You are using Eclipse Juno 3.8.

– karel
Feb 6 at 17:53







I'm using Eclipse Version: Photon Release (4.8.0) in Ubuntu 18.04. You are using Eclipse Juno 3.8.

– karel
Feb 6 at 17:53















And how do I get Photon Release?

– SKREFI
Feb 6 at 20:58





And how do I get Photon Release?

– SKREFI
Feb 6 at 20:58













Eclipse IDE for C/C++ Developers is harder to learn to use than Code::Blocks and more full-featured.

– karel
Feb 6 at 21:46







Eclipse IDE for C/C++ Developers is harder to learn to use than Code::Blocks and more full-featured.

– karel
Feb 6 at 21:46




















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1116143%2fmultiple-problems-with-c-ides-netbeans-not-working-codeblocks-indenting-not%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to make a Squid Proxy server?

Is this a new Fibonacci Identity?

19世紀