M HYPE SPLASH
// news

Change default editor for .cpp files

By John Campbell

When I double click .cpp files I expect gedit to open it, instead RStudio opens it. How to set gedit as the default editor for .cpp files?

2 Answers

In my Ubuntu 14.04, all you need to do is, as above, right-click, open with, other application..., and just select the program. If the program is not listed, press the button labeled "Show other applications" and choose from there.

Right click on a .cpp file and go to properties. In "Open With" tab select gedit from the list and below the list select "set as default".

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy