• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.
  • The forums have been upgraded with support for dark mode. By default it will follow the setting on your system/browser. You may override it by scrolling to the end of the page and clicking the gears icon.

VS code not switching focus on terminal after running a code

Joined
Dec 8, 2019
Messages
205 (0.10/day)
Location
Romania
System Name pc on da desk / Hp z400
Processor Intel i7 8700k @ 5ghz / Intel Xeon w3520
Motherboard Asus PRIME Z370-P II / OEM motherboard
Cooling Be Quiet Dark Rock 3 Pro / OEM cooler
Memory 32 gb Corsair VENGEANCE LPX at 3000 mhz / 8 gb ECC OEM memory at 1333mhz
Video Card(s) AMD RX 7800XT Gigabyte Gaming OC/ AMD SAPPHIRE Radeon R9 380 NITRO Dual-X
Storage 1TB of sata 3 SSD and 3TB of HDD / 240 gb of SSD and 1TB of HDD
Display(s) Legion Y25f-10 144Hz / LG Flatron W1934S
Case Aerocool P7C1 non-pro / Hp z400 case
Audio Device(s) Beyerdynamics DT 770 Pro 80 ohms and HyperX Cloud 2 / nothing ig
Power Supply Xilence Performance X XN073 XP750MR9 750w / OEM PSU 475w
Mouse HyperX Pulsefire Surge / some random office mouse
Keyboard Razer Blackwidow 3 / some random office kb
Software Win 10 Ent / Win 10 Pro
I recently installed vs code and the only problem that I have with it is the fact that whenever I run a code, the typing focus doesn't move to the terminal, so I have to do it manually, by using the mouse. Is there any way to make it switch automatically after running a program? I'm new to vs so don't expect me to understand complex stuff or workarounds. Thanks in advance!
 
Just use a keyboard. Ctrl+` switches to terminal, Ctrl+1 to focus on code window.

Won't post a full solution cause I'm at work right now, but I'll point you in the right direction.
Alternatively, try adding a command to custom tasks.

Ultimately what you need is a build task which will execute
Code:
command: "workbench.action.terminal.focus"
 
Just use a keyboard. Ctrl+` switches to terminal, Ctrl+1 to focus on code window.

Won't post a full solution cause I'm at work right now, but I'll point you in the right direction.
Alternatively, try adding a command to custom tasks.

Ultimately what you need is a build task which will execute
Code:
command: "workbench.action.terminal.focus"
Ok, I'll try to get it working myself but if, I'll be sure to come back to the thread
 
Back
Top