Protocol Buffers

Protocol Buffersコードスクリーンショット生成

Protocol Buffersのスニペットを、Macから離れることなく共有したくなる画像に。

A .proto file is a contract, and screenshots of it usually appear in design docs where the field numbers matter as much as the names.

Codeshotは貼り付けたコードからProtocol Buffersを判別するので、言語の選び間違いは起きません。付属する30種類のうち3つのテーマで同じスニペットを、アプリ自身のスタイルシートで表示しています。

syntax = "proto3";

package snapshot.v1;

message Snapshot {
  string code = 1;
  string theme = 2;
  int32 scale = 3;
}
Atom One · ダーク
syntax = "proto3";

package snapshot.v1;

message Snapshot {
  string code = 1;
  string theme = 2;
  int32 scale = 3;
}
Edge · ダーク
syntax = "proto3";

package snapshot.v1;

message Snapshot {
  string code = 1;
  string theme = 2;
  int32 scale = 3;
}
GitHub · ダーク

Protocol Buffersに合うテーマ選び

Never crop field numbers. They are the part that cannot change later, so an image that hides them is missing the important half.

サイズを正しく決める

画像サイズを内容に合わせるか、比率で固定します(1:1、4:3、3:2、16:9、9:16、2:3、3:4)。そのうえで1×・2×・3×から選んで書き出せば、Retinaディスプレイでも鮮明なままです。Cでクリップボードに直接コピー、またはSで保存できます。

30種類のテーマを見比べるか、全体の流れをご覧ください。

Protocol Buffersと、ほかの59言語のために

すべてMac上で動作します。コードが外に出ることはありません。

macOS版をダウンロード