Other than creating a Keyboard Shortcuts , is it possible to pin the ‘run java’ & ‘debug java’ options to the top of VSCode instead of having it hidden behind the run button.
I have created a keyboard shortcut but I am just interested in having the buttons displayed at the top in the use cases i use them. I have explored VSCode , Java Debugger and Java Tester settings to find a related setting.
2
Answers
Visual Studio Code doesn’t provide a built-in way to pin specific actions like "Run Java" or "Debug Java" directly to the top toolbar. The toolbar primarily displays the most frequently used actions and is not highly customizable in terms of adding new buttons directly to it.
The keyboard shortcut approach you’ve mentioned is one of the common ways to quickly trigger specific actions in VSCode, including running and debugging Java code.
You can use
Custom CSS and JS Loader
, it’s a tool for customizing the appearance of the Visual Studio Code editor by applying custom CSS styles.This extension allows you to override the default styles of VS Code’s interface elements, so you can create a personalized theme for VS Code that aligns with your preferences.
With it you can inject buttons using JS!
See also: How can I add custom CSS styles to VS Code?