All Projects → ksprojects → Protobuf Jetbrains Plugin

ksprojects / Protobuf Jetbrains Plugin

Licence: apache-2.0
Protobuf Support for JetBrains IDEs

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Protobuf Jetbrains Plugin

Intellij Haxe
Haxe plugin for IntelliJ Platform based IDEs (IDEA, Android-Studio)
Stars: ✭ 188 (-16.81%)
Mutual labels:  intellij
Idea Live Templates
My IntelliJ Live Templates
Stars: ✭ 207 (-8.41%)
Mutual labels:  intellij
Protoc Gen Lint
A plug-in for Google's Protocol Buffers (protobufs) compiler to lint .proto files for style violations.
Stars: ✭ 221 (-2.21%)
Mutual labels:  protobuf
Istio Micro
istio 微服务示例代码 grpc+protobuf+echo+websocket+mysql+redis+kafka+docker-compose
Stars: ✭ 194 (-14.16%)
Mutual labels:  protobuf
Gametracking
🛢 Dumping things, so you don't have to
Stars: ✭ 204 (-9.73%)
Mutual labels:  protobuf
Clay
Proto-first minimal server platform for gRPС+REST+Swagger APIs
Stars: ✭ 212 (-6.19%)
Mutual labels:  protobuf
Protobuf Adapter
Google Protocol Buffers adapter for Casbin
Stars: ✭ 185 (-18.14%)
Mutual labels:  protobuf
Intellij Sdk Code Samples
Mirror of the IntelliJ SDK Docs Code Samples
Stars: ✭ 217 (-3.98%)
Mutual labels:  intellij
Rules protobuf
Bazel rules for building protocol buffers and gRPC services (java, c++, go, ...)
Stars: ✭ 206 (-8.85%)
Mutual labels:  protobuf
Hyperium
Hyperium, Free Minecraft client with HUDs and Popular mods
Stars: ✭ 217 (-3.98%)
Mutual labels:  intellij
Him Netty
开源的H5即时聊天系统 spring-boot + netty + protobuf + vue ~
Stars: ✭ 194 (-14.16%)
Mutual labels:  protobuf
Intellij Emberjs
Ember.js support for JetBrains IDEs (IntelliJ, WebStorm, ...)
Stars: ✭ 202 (-10.62%)
Mutual labels:  intellij
Dotfiles
🐧 Simple, fast, productivity-increaser dotfiles
Stars: ✭ 213 (-5.75%)
Mutual labels:  intellij
Grpc Kotlin
gRPC with Kotlin Coroutines
Stars: ✭ 190 (-15.93%)
Mutual labels:  protobuf
Jackson Dataformats Binary
Uber-project for standard Jackson binary format backends: avro, cbor, ion, protobuf, smile
Stars: ✭ 221 (-2.21%)
Mutual labels:  protobuf
Protobuf Dynamic
Protocol Buffers Dynamic Schema - create protobuf schemas programmatically
Stars: ✭ 186 (-17.7%)
Mutual labels:  protobuf
Intellij Hcl
HCL language support for IntelliJ platform based IDEs
Stars: ✭ 207 (-8.41%)
Mutual labels:  intellij
Java Oo
Java Operator Overloading
Stars: ✭ 226 (+0%)
Mutual labels:  intellij
Intellij Key Promoter X
Modern IntelliJ plugin to learn shortcuts for buttons
Stars: ✭ 2,689 (+1089.82%)
Mutual labels:  intellij
Idea Php Annotation Plugin
Add PHP annotation support for PhpStorm and IntelliJ
Stars: ✭ 216 (-4.42%)
Mutual labels:  intellij

Protobuf Support for JetBrains IDEs

Join the chat at https://gitter.im/protostuff/protobuf-jetbrains-plugin

Protobuf Support Plugin for IntelliJ IDEA & other JetBrains products.

THIS PLUGIN IS NOT SUPPORTED SINCE 2019

PLEASE SWITCH TO https://github.com/jvolkman/intellij-protobuf-editor

Releases

Latest plugin release is compatible with IntelliJ IDEA 2018.2 (older releases are compatible with IDEA 13+). Other JetBrains IDEs of the same or higher version should be supported as well.

Compatibility Matrix:

Plugin Version IDE Version Range
0.11.0 IDEA 2018.2
0.9.0 IDEA 2017.1
0.8.0 IDEA 2016.1
0.6.0 IDEA 13 - IDEA 15

Installation

IntelliJ IDEA should suggest you to install plugin automatically when you open .proto file. You can install plugin manually by opening "Plugins" settings, "Browse repositories..." - search for "Protobuf Support".

Plugin page: https://plugins.jetbrains.com/plugin/8277-protobuf-support

Configuration

The plugin does not require configuration by default, for majority of projects it should work out of the box.

Imports

If you see 'File not found' error mark for the import statement, it means plugin cannot resolve target file within current set of source (or resource) roots.

In order to fix it, you should tell to plugin where is the "sources root" for your proto files.

There are a couple ways of doing that:

  1. Mark directory as a source/resources root (right click on folder in project structure, "Mark forlder as...."):

image

  1. Configure directory as source/resources folder in maven/gradle or other build system (if IDEA has support for that build system).

    For gradle you can do it like this:

    idea {
        module {
            sourceDirs += file("${projectDir}/src/main/proto")
        }
    }
    

    for maven, you can add as a resource directory:

    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns="http://maven.apache.org/POM/4.0.0"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    
        <modelVersion>4.0.0</modelVersion>
    
        <groupId>groupId</groupId>
        <artifactId>artifactId</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    
        <dependencies>
          ...
        </dependencies>
    
        <build>
            <resources>
                <resource>
                    <directory>src/main/proto</directory>
                </resource>
            </resources>
        </build>
    </project>
    
  2. You can go to plugin settings, and add source roots there (this is also useful for external imports):

    image

Roadmap

https://github.com/protostuff/protobuf-jetbrains-plugin/wiki/Roadmap

Build

Run following command in the shell:

./gradlew build

It should be possible to run build on any platform (Linux, Windows, MacOS) where Gradle is supported.

JDK 8 must be installed and available on PATH in order to build plugin.

Run IntelliJ IDEA with enabled plugin (for development)

./gradlew runIdea

Screenshots

image

For the sake of history

image

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].