S&box Console for VSCode

A side experiment proof-of-concept from a while ago, it demonstrates as well how flexible the S&box console can be, still very early

I think it can be useful to developers to analyze the reaction to their changes without alt tabbing away from their editor

46 Likes

Looks great!

1 Like

print(“test”)
Save file
Alt tab
Wait 6 seconds because all Source games suck at full screen alt tabbing
Open console
See nothing
Alt tab
Wait 6 seconds
CTRL-S 5 times
Alt tab
Wait 6 seconds
Open console
test

13 Likes

At least you don’t have to compile the whole map like CSGO mods.

On topic: this looks really good! Will definitely speed up workflow.

1 Like

I live for these quality of life features

2 Likes

that colour scheme :drooling_face:

1 Like

can we get this color scheme for VSCode now?

2 Likes

It’s Gruvbox! It’s incredibly great for the eyes

5 Likes

Seems like there is a couple for VSCode. Any recommendations which one to use?

1 Like

Visual Studio or Visual Studio Code
We have choice

1 Like

This is one of the most beautiful things I’ve ever laid my eyes on.

2 Likes

I love this, vscode is so much easier to use than vs imo. And if hotloading is a thing, no reason for me to use visual studio anymore. This just makes it even better

1 Like

Do not run Gmod in fullscreen if you’re developing something for it. Easy solution.

1 Like

I usually have it in windowed mode, but I do not have a choice when using my laptop (Which I remote control my main PC, for some reason Gmod crashes if it’s windowed on a PC that is under remote control)

1 Like

I’ve never had any issue to code while having Gmod in fullscreen :thinking:

1 Like

You probably use windowed borderless. Fullscreen is an absolute abomination

2 Likes

I just checked but I’m really in fullscreen, can someone make a video to see the problem? Because I never had any problem in 8 years on Gmod.

1 Like

Most common reason of long fullscreen alt-tabbing in DirectX 9 games (along with Garry’s Mod) is device removal failure described in this article. This causes the game to recreate and reload all active resources which mostly takes a while. Starting with DirectX 11 that is not a problem anymore as device removal can happen under rare circumstances.

Update: the game should also handle window messages in time, otherwise OS is unable to switch display modes for application.

Windowed mode has its own flaws too, for example it increases input lag as image should be drawn to window buffer at first, only then it can be drawn to display.

1 Like