Skip to content

CodingThailand's Blog

by โค้ชเอก

Menu
  • About Me
Menu

สรุป 20 เทคนิคการใช้งาน Visual Studio Code (Editor) ที่น่าสนใจ

Posted on 20/11/201723/11/2017 by โค้ชเอก

vscode

 

สรุป 20 เทคนิคการใช้งาน Visual Studio Code (Editor) ที่น่าสนใจสำหรับมือใหม่ครับ

—————————-
 
.
1. Ctrl+P เปิดไฟล์อย่างรวดเร็ว โดยการพิมพ์ชื่อไฟล์ได้เลย
 
.
2. Ctrl+Shift+F ค้นหาคำแบบรวดเร็วในไฟล์ต่างๆ
 
.
3. Ctrl+Shift+P
แสดงชุดคำสั่งต่างๆ เช่น ค้นหาการตั้งค่าของ edtior ลองพิมพ์ color theme เพื่อเปลี่ยน theme ของ editor
 
.
4. ลองใช้ฟอนต์ Menlo-Regular (สวยดี) ติดตั้งลง windows ก่อน แล้วตั้งค่าที่ User Settings ดังนี้
 
“editor.fontFamily”: “‘Menlo Regular’, Consolas, ‘Courier New’, monospace”,
 
.
5. Ctrl+B เปิด-ปิด Sidebar
 
.
6. ซ่อน แถบ Open Editors ใน EXPLORER ตั้งค่าที่ User Settings ดังนี้
 
“explorer.openEditors.visible”: 0,
 
.
7. ซ่อน mini map ด้านขวา จะได้ดูสะอาดๆ ตั้งค่าที่ User Settings ดังนี้
 
“editor.minimap.enabled”: false,
 
.
8. สำหรับคนที่เขียน PHP ให้ติดตั้ง extensions phpintelephense และ php debug
 
.
9. ลองติดตั้ง extension ชื่อว่า snippet creator ไว้สร้าง snippet ใช้เองได้
 
.
10. หากพิมพ์โค้ดแล้ว เวลากด tab ต้องการใช้งาน snippet ด้วย ตั้งค่าที่ User Settings ดังนี้
 
“editor.tabCompletion”: true,
 
.
11. หากต้องการใช้ terminal เป็น git แทน powershell หรือ cmd ก็ตั้งค่าที่ User Settings ดังนี้
 
“terminal.integrated.shell.windows”: “C:\\Program Files\\Git\\bin\\bash.exe”,
“terminal.integrated.shellArgs.windows”: [
“-l”,
“-i”
]
 
.
12. ใช้ Ctrl+K เพื่อเคลียร์ข้อความใน terminal
 
.
13. จัดรูปแบบโค้ด ใช้ Shift+Alt+F
 
.
14. หากต้องการจัดรูปแบบโค้ดตอนบันทึกไฟล์ทุกครั้งก็ให้ตั้งค่า User Settings ดังนี้
 
“editor.formatOnSave”: true
 
.
15. สำหรับคนที่เขียน Angular ติดตั้ง extension ชื่อว่า Angular Essentials ได้เลย ของคุณ john papa
 
.
16. สำหรับคนที่เขียน Vue.js ก็ใช้ extension ชื่อว่า Vetur
 
.
17. สำหรับคนที่ใช้ Git แนะนำ extensions ชื่อว่า Git History และ GitLens ครับ
 
.
18. กด Alt ค้างไว้แล้วคลิกเมาส์ที่บรรทัดนั้นๆ หากต้องการใช้ multi-cursor
 
.
19. หากใครใช้ Sublime Text ก็ให้ติดตั้ง extension ชื่อว่า Sublime Text Keymap เพื่อใช้ keyboard shortcuts ที่คุ้นเคยได้
.

20. หากต้องการแก้ไข keyboard shortcuts ให้ Ctrl+Shift+P แล้วพิมพ์ Open Keyboard Shortcuts เพื่อแก้ไข shortcuts ต่างๆตามต้องการ

เว็บไซต์หลัก: https://goo.gl/cqbNhq

หากสนใจ shortcuts ต่างๆ ดูเพิ่มได้ที่ : https://goo.gl/ziLhkA

 
 
โค้ชเอก
Coding Mentor
Category: Editor

ใส่ความเห็น ยกเลิกการตอบ

อีเมลของคุณจะไม่แสดงให้คนอื่นเห็น ช่องข้อมูลจำเป็นถูกทำเครื่องหมาย *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • .NET
  • Android
  • Angular
  • Angular 2
  • Coding
  • CSS
  • Database
  • Editor
  • Flutter
  • Git
  • HTML5
  • Ionic 2
  • Ionic 4
  • Ionic Framwork
  • JavaScript
  • Laravel
  • Laravel 5
  • Node.js
  • PHP
  • PHP 7
  • Plugins
  • React
  • React Native
  • Template
  • Tools
  • TypeScript
  • UI
  • Uncategorized
  • Vue.js
  • XAMPP
  • Yii
  • คอร์สเรียน
  • แรงบันดาลใจ
  • กุมภาพันธ์ 2026
  • มกราคม 2026
  • ธันวาคม 2025
  • กรกฎาคม 2025
  • เมษายน 2025
  • พฤศจิกายน 2024
  • ตุลาคม 2024
  • เมษายน 2020
  • กุมภาพันธ์ 2020
  • สิงหาคม 2019
  • กันยายน 2018
  • สิงหาคม 2018
  • กุมภาพันธ์ 2018
  • พฤศจิกายน 2017
  • ตุลาคม 2017
  • สิงหาคม 2017
  • กรกฎาคม 2017
  • เมษายน 2017
  • ตุลาคม 2016
  • สิงหาคม 2016
  • พฤษภาคม 2016

.NET android Angular Angular 2 Atom Coding Coding Standard CSS CSS 3 Datepicker extensions Git HTML HTML5 Ionic2 JavaScript Laravel5 laravel 5.5 MariaDB Material Design MySQL Node.js npm PHP PHP7 plugins PouchDB recaptcha Restful sail.js template typescript typscript XAMPP Yii2

© 2026 CodingThailand's Blog | Powered by Minimalist Blog WordPress Theme