Visual Studio Code

ไมโครซอฟท์ออกอัพเดต Visual Studio Code เวอร์ชัน 1.69 ซึ่งได้ปรับปรุงโปรแกรมไปหลายรายการและยังมาพร้อมฟีเจอร์ใหม่อย่าง Command Center และ 3-way merge editor ที่เริ่มเปิดให้ทดลองใช้งานในเวอร์ชันนี้

ฟีเจอร์ที่เปิดให้ทดลองอย่างแรกคือ UI ชุดใหม่ที่มีชื่อเรียกว่า Command Center เป็นแถบเมนูสำหรับใช้ค้นหาไฟล์ภายในโปรเจ็กต์หรือใช้พิมพ์คำสั่งต่างๆ ของ VS Code แบบเดียวกันกับ Command Palette เดิมที่ผู้ใช้ VS Code น่าจะคุ้นเคยกับการเรียกใช้งานผ่านคีย์ลัด Ctrl+Shift+P

สิ่งที่ Command Center แตกต่างไปคือการเปลี่ยนไปแสดงผล UI อยู่ในบริเวณ title bar ตลอดเวลาทำให้เข้าถึงด้วยเมาส์ได้สะดวกกว่า

ทดลองใช้ Command Center ได้ด้วยการเปิดการตั้งค่าที่มีชื่อว่า window.commandCenter

ฟีเจอร์ทดลองอย่างที่สองคือ 3-way merge editor ตัวช่วยแก้ไข Git merge conflict ยกตัวอย่างเช่นในกรณีที่นักพัฒนาต้องรวมโค้ดที่เขียนชนกับเพื่อนร่วมทีม

3-way merge editor จะช่วยให้นักพัฒนาเลือกส่วนต่างของโค้ดที่ต้องการเก็บไว้ได้โดยง่าย ไม่ว่าจะติ๊กเลือกโค้ดของเพื่อนร่วมทีม (Theirs) หรือติ๊กโค้ดของตัวนักพัฒนาเอง (Yours) หรือติ๊กเลือกทั้งสองฝั่งเพื่อเก็บโค้ดไว้ทั้งคู่ พร้อมแสดงผลลัพธ์ของการรวมโค้ดให้ได้ตรวจสอบก่อนกดยอมรับการรวมโค้ด (Accept Merge) อีกที

และหากไม่พอใจผลลัพธ์ของการรวมโค้ดจะพิมพ์โค้ดที่ต้องการใหม่เลยก็ทำได้เช่นกัน

ทดลองใช้งานได้แล้วด้วยการเปิดการตั้งค่าที่มีชื่อว่า git.mergeEditor สำหรับท่านที่ยังอยากมั่นใจว่า 3-way merge editor พร้อมใช้งานแล้วจริงๆ ก็สามารถรอจน VS Code เปิดใช้งานเป็นค่าตั้งต้นแทนที่ merge editor แบบเดิมในเวอร์ชันถัดๆ ไปได้

ส่วนฟีเจอร์อื่นๆ ที่ไมโครซอฟท์ยกให้เป็นไฮไลท์พอสรุปได้ดังนี้

  • เพิ่มโหมด Do Not Disturb ซ่อนป๊อปอัพแจ้งเตือนที่ไม่สำคัญ กดเปิดใช้งานได้จากไอคอนรูปกระดิ่งมุมขวาล่างของ VS Code
  • เพิ่มคำสั่ง Preferences: Toggle between Light/Dark Themes บน Command Pallete ช่วยสลับระหว่างธีมสว่าง/ธีมมืดจากค่าที่ตั้งไว้ล่วงหน้า
  • ปรับปรุง Terminal ให้ใช้งานกับ shell อย่าง PowerShell, bash และ zsh ได้ดีขึ้น เช่น
    • ช่วยแสดงสัญลักษณ์ระบุสถานะคำสั่งที่รันบน shell (เช่นไอคอนรันสำเร็จ/ไม่สำเร็จด้านหน้าคำสั่ง)
    • เรียกคำสั่งล่าสุดที่รันบน shell ได้จากประวัติที่เก็บไว้บน VS Code (ผ่านคำสั่ง Terminal: Run Recent Command บน Command Pallete)
  • ช่วยแสดงสัญลักษณ์ระบุสถานะการรัน task (เช่นไอคอนรันสำเร็จ/ไม่สำเร็จด้านหน้าแต่ละ task)
  • เพิ่มปุ่ม Git Commit ภายใต้แถบ Source Control ซึ่งสามารถปรับแต่งการใช้งานเองได้ (เช่นเปลี่ยนเป็น Commit เป็น Commit & Push / Commit & Sync ที่การตั้งค่า git.postCommitCommand)
  • ปรับปรุง UI ระหว่างการดีบักให้สามารถคลิกขวาเพื่อสั่งให้ Step Into ฟังก์ชันที่ต้องการได้
  • ปรับปรุงการดีบัก JavaScript สามารถสั่งเปิด/ปิด sourcemap (ไอคอนรูปเข็มทิศ) เพื่อเลือกเปลี่ยนวิธีไล่โค้ดของตัวดีบักระหว่างบนซอร์สโค้ดและบนโค้ดที่ผ่านการคอมไพล์แล้ว

ที่มา - Visual Studio Code

Hiring! บริษัทที่น่าสนใจ

Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.) company cover
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd. company cover
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd. company cover
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH company cover
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand