Is there any way to zoom in on the Python Shell in Wing IDE? I am having trouble seeing the font because it is too small.
For Wing IDE:
Try ctrl++ or ctrl+MouseScrollUp for quick changes. You can also just change your font size in the Editor preferences.
For Python IDLE:
Under Options --> Configure IDLE; change the Size.
For 'cmd' prompt or Bash:
Right-Click on the Window bar and select Properties. Change the font size in the 'Font' tab. If you want it to be permanent, do the same in 'Defaults' instead (from the right-click menu).
Related
I use the extension code-runner for my VS code to run it directly in the app without a terminal and I had a problem where I had the latest version of Python installed (3.10.0) I had selected that version as my interpreter yet code-runner was running my code in python2.
Here is the solution which worked for me:
As a beginner, I could not understand the way other solutions were explained so I hope this helps:
Go to your User Settings .json by opening the Command Palette with View > Command Palette or by pressing Command+Shift+P on Mac or Ctrl+Shift+P on Windows. Then search for Preferences: Open Settings(JSON)
in a new tab, once again open the command palette but this time look for
Preferences: Open User Settings
in the 'Search settings' bar at the top search for 'Shebang'. Make sure that the box of 'Code-runner: Respect Shebang' is not ticked.
go back to your .json settings file and check that the following line of code is in there:
"code-runner.respectShebang": false,
if not, first reload the page, searching for Developer: Reload window in the command palette.
if it still isn't there you will need to add it yourself alongside all your other settings like so:
You will need to go again to Preferences: Open User Settings in the command palette and in the settings search bar look for Code-runner: Executor Map. If it is not in your settings.json file then you will need to press the little settings/gear icon which pops up when you hover your cursor over it and then select 'Copy Setting as JSON'.
Go back to your settings.json file and paste it in there alongside all your other settings like with Shebang.
it should look something like this:
My problem was with python (but this applies to any other language). Go to the line "python": "python -u", and change it to "python": "python3 -u",.
This solved the issue for me. :)
This question already has answers here:
VSCode - Open terminals in a separate window
(10 answers)
Closed 1 year ago.
would you know if it is possible to open the terminal of visual studio code in window to put it on a second screen? thank you
In the next version of vscode, v1.58, you will be able to drag or move a terminal to an editor. See https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_58.md#terminals-in-the-editor-area
And in v1.59 you will be able to drag a terminal to another window.
Drag terminals from the tabs list or editor area of one window into
the tabs list, editor area, or panel of another window.
Terminals in the editor area
Terminals can now be created in or moved to the editor area, enabling
a multi-dimensional grid layout that persists and remains visible
regardless of panel state.
Create terminals via the Create Terminal in Editor Area command.
Move a terminal from the panel to the editor by dragging and dropping
from the tabs list, running Move Terminal into Editor Area with a
terminal focused, or selecting the context menu action.
So in the Insiders Build now I can open a new window and drag a terminal from there previous window to the new window easily (as a terminal editor now) or simply into its own editor in the same window.
Note that moving an existing editor to a new window apparently changes the working directory so if you want the old cwd you will have to cd to it. Moving an terminal into the same window's editor area preserves all of its state.
I do not think it is possible to open the integrated terminal in a new window directly. why don't you use separate terminal.
So recently my PyCharm is missing its run tool window that usually show the run/debug results. it is now replaced with python console and services, which is really frustrating because It's just showing gibberish and command-prompt-like format.
How do I return the run tool window back as my main run/debug window?
I have circled the tabs/windows that I meant in this pic with red circle.
Note: usually I can access this run tool window by pressing alt + 4.
Please see red circle:
This is my run config:
This is my view tab bar, it doesn't show run (alt+4):
right-click on the code.
More Run/Debug
click on modify run configuration
un-select run with python console
From what I understand you want the run icon pinned to your lower toolbar. (This corresponds to running whatever your last chosen configuration was.)
Two easy steps:
1º View -> Tool Windows -> Run
2º Right-click run icon on lower tool bar -> View Mode -> Dock Pinned
Edit after OP feedback:
If your Run (Alt+4) option has disappeared completely, besides trying a PyCharm reinstall it's advisable to manually clean the preference files that might be hidden. Check the following paths C:\Users\user_name\AppData\Local\JetBrains and C:\Users\user_name\AppData\Roaming\JetBrains, C:\Users\user_name\.PyCharmCE2020.x, and C:\Path_to_your_Project\.idea. Some of there directories might be hidden so you'll have to check you've set them to be visible.
Even by reinstalling PyCharm some of the above configurations are likely to be kept. There's a strong possibility the state of whatever changes that caused Run to disappear is kept in files inside the above mentioned directories.
I am using a 4k Windows laptop and I configured the compatibily settings for PyCharm(2017.2.3 Community Edition) and the font size of the editor looks fine.
Subsequently,I wanted to fix the font size of the terminal and the python console. Using this post and this from stackoverflow, I went to File -> Settings -> Editor -> Colors Scheme -> Console Font and I changed the font size. This resulted in changing the font size of only the python console and not the terminal. Any suggestion?
Pictures attached:
Did you try to to go to do this? "Settings" -> "Appearance and Behavior" -> "Appearance" -> Deactivate Override of default fonts?
Source
In the end I had to unistall it and install it again from the beginning without importing the settings. Should have a been a problem with the installation.
I've seen other IDEs have the option to right click and reinitialize the environment. Does anyone know if this is possible in PyCharm, and if so, how it's done?
There is a little reset button (small square with a curved green arrow can be seen above) on the top left of the console that says "Rerun" as the tool tip; this seems to reset the console.
If you can't see the button, the Toolbar might be hidden. To get the Toolbar you need to right click on the "Python Console" tab, and click on "Show Toolbar"
The other answer is correct, I'm adding a new answer on how to create a shortcut for re-running the console. By default, it doesn't have any shortcut, but you can add it by mapping it in Keymap.
Open Preferences (in Mac: Cmd+,) and search for "rerun"
Add the keyboard shortcut for Rerun by double-clicking the "Rerun" line. As you can see from the image below, I assign Cmd+Shift+O for it.
Now you can rerun the console by using the shortcut and don't have to use your mouse anymore.
Please note that this button does not reset all the variables. But then you can enter in the command prompt: reset.
I had tried "rerun" and found that it didn't reload the new environment.
I suggest that "new console" button could help you to reload the environment that it had installed the new packages.