PDF Mikata

การตรวจสอบความแตกต่างในโค้ด

เผยแพร่: 19 ต.ค. 2026 | อัปเดต: 19 ต.ค. 2026 | เกี่ยวกับ (ภาษาญี่ปุ่น)

ประเด็นสำคัญ
  • วาง
  • ดู

After modifying a program, you want to check what you changed. You want to know how a configuration file differs from the previous one. Compare Two Texts (Diff) can compare code too.

ขั้นตอน

  1. Paste the code from before the change into "Text A (before)".
  2. Paste the code after the change into "Text B (after)".
  3. กด “เปรียบเทียบ”
  4. Check the added and removed lines under "See the differences".
If you want to ignore indentation-only differences, you can use "Ignore spaces at the start and end of lines". But in languages like Python, where indentation matters, ignoring may cause you to miss changes.

เหมาะกับ

Tips for use

For serious development

For team development, version control such as Git is suitable. This tool is handy when you simply want to compare two pieces of code at hand.

Cautions

Tips for comparing configuration files

ตัวอย่าง

Production and development configuration files somehow behaved differently. Pasting both and comparing showed just one line, the connection target, differed.

Common stumbling blocks

Frequently asked questions

Can a whole large project be compared?

No. Paste and compare file by file.

สรุป

Paste two pieces of code or settings and compare. Use it for quick checks at hand, and use version control for serious work.

ใช้ “เปรียบเทียบข้อความสองชุด (Diff)” (ฟรี)

เครื่องมือที่ใช้คู่กันได้ดี

หากคู่มือนี้เป็นประโยชน์ ทิปเล็ก ๆ น้อย ๆ จะเป็นกำลังใจอย่างมาก

ส่งทิป (¥300)ส่งของขวัญ (Amazon wishlist)

คู่มืออื่น ๆ ของเครื่องมือนี้

ดูคู่มือทั้งหมด