Changing the external console used by launch.json - terminal

I'm trying to get the output from the process I am debugging to display in iTerm.
I have added the following lines to my UserSettings file
"terminal.external.osxExec": "iTerm.app",
"terminal.explorerKind": "external",
And when I select open in terminal from within Visual Studio Code it does indeed open with iTerm.
However when I set "externalConsole": true, in my launch.json file, the output still shows up in a new Terminal.app window.
How do I get the debugging output to show up in iTerm? Do I need to change more settings?
I have read this question. The steps I took above came from answers to that question but my problem is specifically in getting the debugging output to iTerm.

Related

How to change default app opened from the terminal in windows 11

I tried to run a .sh file in my terminal and accidentally opened it in vscode, now it always opens in vscode even though i want to run it in the terminal itself.
I tried uninstalling vscode so i can get the option to choose again, but that didn't seem to work. I'm too scared to play about with the JSON file incase I mess something up as this is a school project.
Just change the default app for the .sh file type. After that, .sh files won't open by vs code.
To do this in windows 11
Search For Default Apps on start
Scroll to the bottom and click Reset All Default apps
This will reset all the default apps and you can set the defaults again

Why the vs-code terminal is not working internally?

The vs-code terminal is not working as an integrated terminal but as I click
New Terminal
It opens cmd.exe as an external tool.
I tried checking the settings but it was integrated as before but yet the problem is still there.
I am getting this message.
The terminal process terminated with exit code: 3221225786
i have the exact same problem and i am pretty sure i have not made any relevant changes...
In the mean time Ive found a temporary fix or at least it works for me: go to settings and search for "conpty", in the "terminal>integrated: windows enable conpty" section uncheck the "whether to use ConPTY..." and the integrated terminal works as before
looks like it is a bug: https://github.com/microsoft/vscode/issues/73790
Turn off the checkbox "Windows Enable Conpty".
This is highly recommand for error exit code '3221225794' when i open the terminal in VSCODE.

RubyMine Terminal Not Working Win10

I recently installed RubyMine v7.1.4 on my Windows 10 machine. I loaded up an existing project and tried to open a terminal window inside RubyMine. When I first open the terminal it is blank and after a few minutes the standard prompt appears. But after the prompt has appeared, I cannot type anything into the terminal. The cursor blinks like it is waiting for input but I cannot type anything.
I am able to use a normal command prompt to run the commands I need to but I would like to get the terminal within RubyMine working. The settings for the terminal appear to be correct, it is pointing at "cmd.exe". I am not sure if it is relevant but my RubyMine installation is on my C: drive but the code repository is on my E: drive.
If you have any suggestions, they would be greatly appreciated. Thanks!
I had the same issue, and discovered that it is also affecting IntelliJ, another JetBrains family IDE; the bug has been reported, but fortunately, you can force your Windows 10 console (full of new features, but perhaps buggy? https://wpdev.uservoice.com/forums/266908) to operate in 'legacy mode' while we wait for a formal fix, which will allow you to get your RubyMine terminals up and running again:
Terminal works in Windows 10 if you use legacy console. To do so, open a
command prompt window, right click on the title, then select Properties. At
the bottom, check "Use legacy console". Confirm the dialog. Go back to the IDE
and launch a new Terminal. It should work.
All credit to: IntelliJ Idea Terminal broken with Windows 10. | JetBrains Bug Report.

How can I pop up the system property window in windows7

I want to open the system property window to change environment variable in Windows7. I know how to open that window, and used to use that window sometimes before, but today I opened the window as usual, It does not appear. How can I open it?
You should check why that command stopped to work in your environment, meanwhile try with this (from command line or from Run):
rundll32 sysdm.cpl,EditEnvironmentVariables
Also check this: https://msdn.microsoft.com/en-us/library/windows/desktop/cc144191%28v=vs.85%29.aspx

Sublime Text 2 - Key Binding for Open Recent?

How can I map Open Recent, or "open last file" to a keyboard shortcut?
This is my pitiful attempt so far:
{ "keys": ["super+shift+r"], "command": "open_recent"}
I tried looking at the console (Ctrl-`) while using Open Recent but it doesn't display anything.
In general, how does one go about adding key bindings? And is there a more appropriate place that Stack Overflow for this question?
Thanks!
Key bindings should be added to the User key-binding preferences. Adding to the default settings will also work, but the settings will be overwritten when a new version of Sublime Text 2 is installed.
Your attempt matches the general structure of a Sublime Text key-binding, but "open_recent" isn't a valid command. From what I can find in the documentation, I think the Open Recent menu keeps track of the different file names then calls open on whichever file is selected, instead of calling an open_recent command.
If there isn't a way to get the name of the most recent file, you could probably write an extension that kept track of the most recent file and then opened it, but that probably be a fairly kludgy solution.
The command is reopen_last_file. So you should add something like this:
{ "keys": ["ctrl+shift+r"], "command": "reopen_last_file" },
Little PS: I'm using ctrl+shift+t, so that the shortcut for reopening the last document is consistent across my browser, IDE and editor.
I suggest you try out a couple of packages:
https://github.com/spadgos/sublime-OpenRecentFiles
or:
https://github.com/paccator/GotoRecent
And the easiest way to install them is with this package control, package:
http://wbond.net/sublime_packages/package_control/installation
That should give you what you want...

Resources