Diffs are the single best argument for sharing code as an image: the green and red carry the meaning, and both are lost the moment it becomes plain text.
Codeshotは貼り付けたコードからDiffを判別するので、言語の選び間違いは起きません。付属する30種類のうち3つのテーマで同じスニペットを、アプリ自身のスタイルシートで表示しています。
Diff
Diffのスニペットを、Macから離れることなく共有したくなる画像に。
Diffs are the single best argument for sharing code as an image: the green and red carry the meaning, and both are lost the moment it becomes plain text.
Codeshotは貼り付けたコードからDiffを判別するので、言語の選び間違いは起きません。付属する30種類のうち3つのテーマで同じスニペットを、アプリ自身のスタイルシートで表示しています。
@@ -12,7 +12,7 @@ struct Snapshot {
let code: String
var theme: Theme = .xcode
- var scale: Int = 1
+ var scale: Int = 2
func export(to path: URL) throws {
@@ -12,7 +12,7 @@ struct Snapshot {
let code: String
var theme: Theme = .xcode
- var scale: Int = 1
+ var scale: Int = 2
func export(to path: URL) throws {
@@ -12,7 +12,7 @@ struct Snapshot {
let code: String
var theme: Theme = .xcode
- var scale: Int = 1
+ var scale: Int = 2
func export(to path: URL) throws {
Do not trim the hunk header. The line numbers are what tell people where in the file they are looking.
画像サイズを内容に合わせるか、比率で固定します(1:1、4:3、3:2、16:9、9:16、2:3、3:4)。そのうえで1×・2×・3×から選んで書き出せば、Retinaディスプレイでも鮮明なままです。⌘⇧Cでクリップボードに直接コピー、または⌘Sで保存できます。
30種類のテーマを見比べるか、全体の流れをご覧ください。
すべてMac上で動作します。コードが外に出ることはありません。