Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ .proto support

I have IntelliJIdea 12 Ultimate edition (personal license). I have a .proto file that was being opened as a text file because IntelliJ could not recognize the .proto extension. I looked into the plugin repo for IntelliJ and found "Google Protobuf Buffers support" (More info about the plugin here). I installed it and restarted IntelliJ but the .proto files are still being recognized at text files. There is no IntelliSense.

Has anyone successfully installed and used this plugin? Could you please share how you made it to work? Also, if you used some other way then please share that as well. My goal is to add IntelliSense to IntelliJ for .proto files.

like image 799
Karan Ashar Avatar asked Oct 24 '13 22:10

Karan Ashar


1 Answers

You can get .proto support if you follow this steps:

  1. Install a plugin Protobuf Support

(You can install throught Intellij File>Settings>Plugins>Search for Protobuf Support in the marketplace search)

  1. Try to open some .proto file, if everythings works you are done
  2. If Intellij doesn't recognise the file go to File>Settings>Editor>File Types.
  3. Under recognized file types find "ProtoBuf"
  4. Click on it and then press the plus/add button to add a registred pattern
  5. Pattern should be *.proto (don't forget the star before .proto)
  6. Restart Intellij just to be sure

P.S : People already answered in the comments, but at first I didn't notice so I decided to write an answer, it might help somone :)

like image 143
Pero122 Avatar answered Oct 29 '22 00:10

Pero122