How to disable expanding run button - vscode-code-runner

Code runner expands run button on click (new behaviour), is there any way to set the default?
(run in terminal enabled)
I just need a single click to run the program. (I want Run Python file in Terminal to be default action)

Related

Restart SBT Shell in IntelliJ IDEA after SIGINT

I have a bad habit of pressing Ctrl+C when I want to copy an error from the SBT shell. This will kill the shell and I can't figure out how to restart it without exiting and reopening the project. Is there a way to do this? It's quite annoying.
EDIT:
Just to clarify for some of you answering: I am on linux. Running the 2020.1.1 release (Community Edition).
This is what my shell looks like after I kill it with Ctrl+c
There is no panel on the side with a Play/Stop/Etc button.
There should be Start sbt shell button on the left-hand side toolbar of sbt shell tool window as indicated by the arrow bellow
After pressing it the shell should start and the button turns into Restart sbt shell
If the play button is not visible, then the side toolbar is likely hidden, so click on the three dots on the right of sbt shell and select Show Toolbar
I am using 2019.3 version of intellij idea currently. In this you have option :
View > Tool Window > Sbt Shell
and you will see the sbt shell. Also you can find it at the bottom where you can find other options like: Terminal and version control(if enabled)
In the prompt window you can see run button(green arrow something like : |> ) to get your shell started.

Can't set title for terminal window when launched from Gnome menu launcher

I added a new Gnome menu option to launch a custom script application. I am using Redhat 6, Gnome 2. This is all working but when it launches in a new terminal window I cannot get the title to display anything other than the default 'Terminal'.
Here's how I have it configured; I have added the following files to get it working:
/usr/shared/applications/app.desktop ( configures launching of my application )
/usr/shared/desktop-directories/app.directory (specify a directory from menu for my app)
/etc/xdg/menu/application-merged/app.menu ( adds menu option to main Applications pull down menu)
The app.desktop file specifies the location of the script I want to run and I have set the 'Terminal' option to 'True' which launches it in a new terminal window. I have tried adding the following to during startup of the script but it doesn't change the title.
PROMPT_COMMAND='echo -ne "\033]0; APP TITLE\007"'
Setting the 'PROMPT_COMMAND' from a separate, interactive terminal DOES work though. Not sure why it doesn't work when launching from the gnome application launcher.
As far as I know, you can't really set the terminal window title I have tried everything even modifying files but to no avail. The method which your using is meant to be put in the .bashrc in the home folder but doesn't seem to work.
gnome-terminal --title="example"
The command above which I have tried doesn't work either

Shortcut toggle between debug configuration

has anyout anyone found a way (shortcut or navigation) without using the mouse to select different configurations before starting the debugger.
Is it also possible, when debugging multiple configurations, to select them without using the mouse.
Thank you.
Part (to start debug) is done with 1.10.1
https://code.visualstudio.com/updates/v1_10#_debugging
Ability to select and start a launch using keyboard The option to
launch debug configurations using just the keyboard (no mouse gesture
necessary) was added, as per this request. It works similarly to
running tasks, with an ability to launch a debugging session from the
Command Palette. The keyword 'debug ' or the command Debug: Select and
Start Debugging from the Command Palette is used to select and launch
a configuration from launch.json.
You can register a custom keybinding for
command: workbench.action.debug.selectandstart
when: !inDebugMode

Auto-update and launcher integration - install4j

I am trying to integrate install4j updater application to be part of start menu (in Windows). So that user can go to Start->Programs->AppName->Update and start updater.
I tried with "Launcher integration" option (I created launcher who points to batch file with only one echo command which is doing nothing) and setup my updater to be invoked whenever this launcher is invoked (launcher exists in the Start menu).
But when I start launcher from the Start menu, updater doesn't appear, no errors, no logs and launcher is executed (echo message).
Is there any other way or I miss something?
I am trying to integrate install4j updater application to be part of
start menu (in Windows). So that user can go to
Start->Programs->AppName->Update and start updater.
Presumably you have a "Create program group" action in your "Installation" screen. In the configuration of that action, activate the "Windows program group entries" tab and add a file link to the updater.

Custom command for Eclipse on current file

I would like to enhance Eclipse so that when I press a custom key combo--say Ctrl + Shift + E--then it will run a command on the current file (if my current buffer is foo.c then it will run `mycommand foo.c' in foo.c's directory).
Open the External Tools Configuration dialog from the Run menu. Create a new configuration with the following settings.
Location: c:\mycommand.exe (alter to your needs)
Working directory: ${container_loc}
Arguments: ${resource_loc}
Under Prefrences->General->Keys you can setup a shortcut for "Run last launched external tool".
This should solve your problem.
Also, make sure that your "resource" (foo.c) is selected. It happened to me that when testing the external tool and horizontally scrolling the output pane, the resource gets deselected. When you run the external tool again after probably having made changes to its configuration, Eclipse will pop up an error box about "empty variable" (e.g. ${resource_loc} ).