Editor ที่เป็นที่นิยมในการเขียนโค้ดในปัจจุบันหนึ่งในนั้นคือ VS Code เพราะเป็นทั้งFreewareและยังรองรับ Extension ที่หลากหลาย ทำให้การการเขียนโค้ดสะดวกขึ้นอย่างมาก ซึ่งในวันนี้เราจะมาดูคีย์ลัดในโปรแกรมที่จะยิ่งทำให้เราทำงานได้อย่างง่าย และสะดวกรวดเร็วขึ้นกันครับ 🙂 🙂 🙂
หมายเหตุ : ความหมายของสัญลักษณ์สำหรับเครื่อง Mac ในบทความนี้ครับ
Command | Window | Mac |
---|---|---|
ปิดหน้าต่างเขียนโค้ดปัจจุบัน | Ctrl+W | ⌘W |
เปิดแท็บที่เพิ่งปิดขึ้นมาใหม่ | Ctrl+Shift+T | ⌘T |
เปิดไฟล์(เรียงตามไฟล์ล่าสุดที่เปิด) | Ctrl+P | ⌘P |
สลับแท็บไฟล์ที่ทำงาน | Ctrl+Tab | ⌃⇧Tab |
เลื่อนแท็บปัจจุบันมาฝั่งซ้าย | Ctrl+Shift+PageUp | ⌘K ⇧⌘← |
เลื่อนแท็บปัจจุบันมาฝั่งซ้าย | Ctrl+Shift+PageDown | ⌘K ⇧⌘→ |
เพิ่มหน้าต่างเขียนโค้ด | Ctrl+\ | ⌘\ |
เลือกหน้าต่างเขียนโค้ดที่1 | Ctrl+2 | ⌘1 |
เลือกหน้าต่างเขียนโค้ดที่2 | Ctrl+2 | ⌘2 |
เพิ่มบรรทัด(ล่าง) โดยCursorอยู่ตรงไหนก็ได้ | Ctrl+Enter | ⌘Enter |
เพิ่มบรรทัด(บน) โดยCursorอยู่ตรงไหนก็ได้ | Shift+Ctrl+Enter | ⇧⌘Enter |
เลื่อนบรรทัดปัจจุบันขึ้นไป1บรรทัด | Alt+Up | ⌥↑ |
เลื่อนบรรทัดปัจจุบันลง1บรรทัด | Alt+Down | ⌥↓ |
Copyโค้ดบรรทัดปัจจุบันไปวางบรรทัดบน | Shift+Alt+Up | ⇧⌥↑ |
Copyโค้ดบรรทัดปัจจุบันแล้ววางที่บรรทัดล่าง | Shift+Alt+Down | ⇧⌥↓ |
เลือกทั้งแถว | Ctrl+L | ⌘L |
เพิ่มแท็บที่บรรทัดปัจจุบัน | Ctrl+] | ⌘] |
ลดแท็บที่บรรทัดปัจจุบัน | Ctrl+[ | ⌘[ |
ลบบรรทัดปัจจุบัน(Cursorอยู่ตรงไหนก็ได้) | Ctrl+X | ⌘X |
ไปที่บรรทัดบนสุด | Ctrl+Home | ⌘Home |
ไปที่บรรทัดล่างสุด | Ctrl+End | ⌘End |
คอมเมนต์ | Ctrl+/ | ⌘/ |
แสดงคำแนะนำการเขียนโค้ด | Ctrl+Space | ^Space |
ดูว่าตัวแปร/ฟังก์ชันนี้ถูกเรียกที่ไหนบ้าง | F12 | F12 |
ย่อฟังก์ชันให้สั้น | Ctrl+Shift+[ | ⌥⌘[ |
เลิกย่อฟังก์ชัน | Ctrl+Shift+] | ⌥⌘] |
ไปที่บรรทัดที่(กรอก) | Ctrl+G | ^G |
ย้อนกลับไปตำแหน่งCursorก่อนหน้า | Alt+Left | ⌃- |
ไปยังCursorถัดไป | Alt+Right | ⌃⇧- |
แสดงโค้ดให้พอดีกับหน้าจอ (ไม่กระทบFormat) | Alt+Z | ⌥Z |
ซูมหน้าจอเข้า | Ctrl+= | ⌘= |
ซูมหน้าจอออก | Ctrl+- | ⇧⌘- |
จัดรูปแบบโค้ดอัตโนมัติ(มาตรฐานPEP8) | Shift+Alt+F | ⇧⌥F |
เพิ่มCursor(กรณีต้องการเพิ่มค่าเดียวกันหลายจุด) | Alt+คลิกตำแหน่ง | ⌥+คลิกตำแหน่ง |
เปิดVS Codeใหม่ | Ctrl+Shift+N | ⇧⌘N |
ลบ(กลุ่ม)คำด้านซ้าย | Ctrl+Backspace | ⌘Backspace |
ลบ(กลุ่ม)คำด้านขวา | Ctrl+Del | ⌘Del |
เลื่อนหน้าจอขึ้น | Ctrl+Up | ⌃PgUp |
เลื่อนหน้าจอลง | Ctrl+Down | ⌃PgDn |
เลื่อนหน้าจอขึ้น1หน้า | Alt+PageUp | ⌘PgUp |
เลื่อนหน้าจอลง1หน้า | Alt+PageDown | ⌘PgDn |
เพิ่มบล็อกคอมเมนต์ (“”” “””) | Shift+Alt+A | ⇧⌥A |
แทนที่ | Ctrl+H | ⌥⌘F |
แสดงพารามิเตอร์ที่ฟังก์ชันต้องการ | Ctrl+Shift+Space | ⇧⌘Space |
โหมดเต็มหน้าจอ | F11 | ⌃⌘F |
ซ่อน/แสดงแท็บด้านข้าง | Ctrl+B | ⌘B |
สลับCursorระหว่างExploreกับพื้นที่เขียนโค้ด | Ctrl+Shift+E | ⇧⌘E |
ซ่อน/แสดง Output | Ctrl+Shift+U | ⇧⌘U |
เปิดหน้าต่างCommand Prompt | Ctrl+Shift+C | |
เปิดหน้าต่าง Setting | Ctrl+, | ⌘, |
Source : VSCode Keybindings
Thanks a lot for sharing this with all folks you really understand
what you are talking about! Bookmarked. Please additionally talk over with my website
=). We may have a link trade contract among us
Nice weblog here! Also your site lots up very fast!
What host are you the use of? Can I get your affiliate
hyperlink for your host? I wish my site loaded up
as quickly as yours lol
Thank you.
Woah! I’m really digging the template/theme of this blog.
It’s simple, yet effective. A lot of times it’s tough to get that “perfect balance” between user friendliness and visual appeal.
I must say you’ve done a great job with this. Also, the blog
loads super quick for me on Opera. Excellent Blog!
Thank you.
What’s up, after reading this remarkable post i am also glad
to share my knowledge here with colleagues.
Thank you.
Hi there terrific website! Does running a blog similar to this
require a great deal of work? I’ve very little understanding
of coding however I was hoping to start my own blog soon. Anyways, should you have any recommendations or techniques for new blog owners please share.
I understand this is off topic however I simply wanted to ask.
Thank you!
Thank you.
We’re a group of volunteers and opening a new scheme in our community.
Your site offered us with valuable info to work on. You’ve done an impressive job and our whole community
will be grateful to you.
Thank you.
Hello, Neat post. There’s an issue along with your website in web explorer, may check this?
IE still is the market chief and a large part of people will leave
out your wonderful writing because of this problem.
Thank you.
Thanks a lot for sharing this with all folks you actually know what you’re
speaking about! Bookmarked. Please additionally consult with my website =).
We can have a hyperlink change agreement among us
Thank you.
This internet site is my intake, rattling fantastic style and design and perfect content material.
Thank you.
Great blog here! Also your site loads up fast! What host are you using? Can I get your affiliate link to your host? I wish my site loaded up as fast as yours lol
Thank you.
What i do not realize is in reality how you are now not actually a lot more well-favored than you may be right now. You’re so intelligent. You already know thus significantly relating to this subject, made me in my view believe it from so many varied angles. Its like women and men don’t seem to be fascinated unless it¦s something to do with Woman gaga! Your individual stuffs great. All the time take care of it up!
Thank you.
I have been browsing online greater than three hours as of late, yet I by no means found any attention-grabbing article like yours. It’s pretty price enough for me. Personally, if all website owners and bloggers made just right content as you did, the net might be much more helpful than ever before.
Thank you.
Great post. I am facing a couple of these problems.
Thank you.
Thank you for sharing superb informations. Your web-site is very cool. I’m impressed by the details that you have on this website. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for extra articles. You, my friend, ROCK! I found simply the info I already searched all over the place and just could not come across. What a perfect web site.
Thank you.
What¦s Going down i am new to this, I stumbled upon this I’ve discovered It absolutely helpful and it has aided me out loads. I’m hoping to give a contribution & assist other users like its helped me. Good job.
Thank you.
Really Appreciate this post, is there any way I can get an update sent in an email when you publish a fresh article?
You can follow us at facebook fanpage >> https://www.facebook.com/BrilliantPy, Thank you.
Thank you for any other excellent post. Where else may anyone get that kind of info in such a perfect approach of writing? I have a presentation subsequent week, and I’m on the look for such info.
Thank you.
hello there and thank you for your information – I have definitely picked up anything new from right here. I did however expertise a few technical points using this site, since I experienced to reload the web site many times previous to I could get it to load correctly. I had been wondering if your hosting is OK? Not that I’m complaining, but slow loading instances times will very frequently affect your placement in google and can damage your quality score if ads and marketing with Adwords. Well I am adding this RSS to my email and could look out for a lot more of your respective intriguing content. Ensure that you update this again soon..
Thank you.
I’m really enjoying the design and layout of your blog. It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a designer to create your theme? Exceptional work!
I design by myself, thank you.
I always was interested in this topic and still am, regards for putting up.
Thank you.
I like what you guys are up also. Such clever work and reporting! Carry on the superb works guys I have incorporated you guys to my blogroll. I think it’ll improve the value of my web site 🙂
Thank you. You can follow us either way.
youtube : https://www.youtube.com/@brilliantpy/videos
Facebook: https://web.facebook.com/BrilliantPy
Deference to post author, some wonderful entropy.
Thank you. You can follow us either way.
youtube : https://www.youtube.com/@brilliantpy/videos
Facebook: https://web.facebook.com/BrilliantPy
Appreciate the recommendation. Let me try it out.
Thank you. You can follow us either way.
youtube : https://www.youtube.com/@brilliantpy/videos
Facebook: https://web.facebook.com/BrilliantPy
I am typically to running a blog and i actually respect your content. The article has really peaks my interest. I am going to bookmark your site and hold checking for brand spanking new information.
Thank you. You can follow us either way.
youtube : https://www.youtube.com/@brilliantpy/videos
Facebook: https://web.facebook.com/BrilliantPy
Thankyou for this tremendous post, I am glad I noticed this web site on yahoo.
Thank you. You can follow us either way.
youtube : https://www.youtube.com/@brilliantpy/videos
Facebook: https://web.facebook.com/BrilliantPy
naturally like your website however you need to test the spelling on several of your posts. Several of them are rife with spelling problems and I in finding it very troublesome to inform the truth nevertheless I¦ll certainly come back again.
Thank you. You can follow us either way.
youtube : https://www.youtube.com/@brilliantpy/videos
Facebook: https://web.facebook.com/BrilliantPy