OSX CLion Open editor files from Finder Window

已完成

When I use CLion (via Open With) to open a source file (sample.cpp, sample.h, sample.vert, ..) from a finder window, I get the OSX message 

sample.cpp can’t be opened because it is from an unidentified developer.

OSX seems to be treating the source file opened by CLion via Finder's Open With, as if it were an application.  I can do the usual things to open the file, as if it were an app from a unidentified developer, but this seems like the wrong approach, and is a not practical for source files. 

This seems like an OSX thing.  Is there an OSX, or CLion setting that will allow me to use CLion to view source files from Finder.  I'd like to make CLion the default for opening .cpp files, but I can't seem to get past this issue.

0

Hi! What CLion version do you use (CLion | About CLion)? I can open *.cpp files in CLion using Open with on macOS without warnings.

0

That's encouraging.  I'm using CLion 2018.1, on macOS High Sierra 10.13.4.

 

0

Please right-click on a source file and choose "Get Info". What do you have in the "Kind" field and in the "Open with" section?

0

The "Get Info" Kind is "C++ Source"

 

0

Well - I hate to admit this.  But today it works.  I can't explain it.  I tried reboots last week, with no luck.  Today, it just works the way I expected it to.  I suppose that's good news.  I appreciate the reply's to my original question.

0

Strange situation. But I'm glad it's resolved!

0

请先登录再写评论。