Shell

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

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

A shell session is different from a shell script: the prompt and the output are part of what you are showing, which is exactly why a screenshot beats a code block.

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

$ codeshot export main.swift --theme xcode
Rendered 1 snippet at 2x
Saved to ~/Desktop/main.png
Atom One · ダーク
$ codeshot export main.swift --theme xcode
Rendered 1 snippet at 2x
Saved to ~/Desktop/main.png
GitHub · ダーク
$ codeshot export main.swift --theme xcode
Rendered 1 snippet at 2x
Saved to ~/Desktop/main.png
Tokyo Night · ダーク

Shellに合うテーマ選び

Include the prompt character. Without it nobody can tell which lines you typed and which the machine printed back.

サイズを正しく決める

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

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

Shellと、ほかの59言語のために

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

macOS版をダウンロード