Doing interactive computing using IPython in a terminal or as part of an IDE like Spyder, it would be nice to maintain the prompt in the center of the screen. Here is what typically happens:
Upon starting, the prompt (e.g. In [1]:) is at the top of the screen
A few interactive steps later, the prompt is at the bottom of the screen.
You type clear and are back at the top.
Is there any way to maintain the prompt in the center of the screen? A smooth automatic scroll of the screen upwards so that the prompt stays centered would be great.
(Spyder developer here) There's no way to maintain the prompt centered at the moment (September 2017), sorry.
Related
I have a Perl/Tk window which is displayed on top of all other windows. It is a MainWindow->Frame->Label with text (it's a security classification banner). It must be a window which is on top. However, right now a user cannot move the window from its set location, so it will occasionally cover up a lower window control.
How can I make this window movable so it can be repositioned?
I don't have easy access to external modules since I'm on a closed network, so simple Perl/Tk code is best.
This is a Linux system running the KDE or Gnome desktop.
I have found that if you remove the decorations from a Perl/TK mainwindow, it cannot then respond to mouse movements.
Recently in VS Code, somewhere around v1.42 or v1.43, we gained the ability to move around the following windows/panels that used to be stuck in the panel:
Terminal
Output
Debug Console
Problems
They could be split into multiple items in the panel itself (side-by-side or top/bottom, depending on whether the panel was at the bottom or left/right), and even dragged into the side-bar.
This was great, but after moving all of these windows to the side-bar while experimenting, I can't find any way to move them back into the panel. The panel is now empty, except for 3 dots (an ellipsis) in the upper left corner. You can still hide/show the panel, and move it left, bottom, or right, but there is nothing in it, and you can't drag anything to it. Dragging the terminal into the panel shows an icon that looks like it will successfully move (it's not the icon with the circle/cross-out you get other places it won't drop), but when releasing the click-drag, nothing happens.
I had just upgraded to v1.45.0 when this happened. It appears to be a defect, unless I'm missing something. Does anyone have a way to put the terminal or one of these other windows back in the panel, or reset their position? I combed the settings, and tried to find default setting's files (system or user) that might hold info on what is in the panel vs. the sidebar, etc., but couldn't find anything via search or on my PC. Any ideas?
Note: This is NOT about moving the panel between the left/right/bottom positions, or selecting the terminal/output/etc. in the panel itself. That's "old news", this is a recent feature.
Here is a view with the Terminal, Output, Debug Console, and Problems put at the top of the sidebar toolbar, and Terminal focused. The Panel is just to the right of the sidebar window, set to the "left" position, completely blank and useless. The "welcome" window on the far right side:
And here are my current settings:
See this issue https://github.com/microsoft/vscode/issues/96117 (Empty panel behaves weird)
Suggested fix:
Run the command View: Reset View Locations in the command palette.
Please see: https://www.technipages.com/visual-studio-reset-window-layout
Menu Window / Reset Window Layout worked for me in VS 2019
I'm working in VSC and writting nodejs and I am faced with a scroll problem in long terminal outputs, scroll on the right side of terminal with slider goes too many rows too fast if I use them, so, question is, do we have smooth scroll option in integrated terminal to read output easy and line by line with arrows or we must use another external terminal for that?
Thanks.
In v1.71 smooth scrolling will be improved, see Release Notes: Terminal Smooth Scrolling.
The terminal now supports smooth scrolling which will animate
scrolling over a short period to help orient yourself after scrolling,
like the feature that is also available in the editor and lists. To
enable it set:
json "terminal.integrated.smoothScrolling": true
In vscode v1.42 (early February, 2020) two new commands related to terminal mouse wheel scroll sensitivity will be introduced:
Scrolling sensitivity
The terminal's scrolling sensitivity can now be configured independent
of the editor using the new settings
terminal.integrated.mouseWheelScrollSensitivity and
terminal.integrated.fastScrollSensitivity.
See https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_42.md#scrolling-sensitivity
Thanks to #Sean and #user9811991 in the comments for pointing out that the setting is a multiplier. My terminal normally scroll three lines at a time, to get it to scroll only one line I had to set terminal.integrated.mouseWheelScrollSensitivity to 0.08.
Also see Scrolling the terminal line by line from the keyboard for a keyboard command that scrolls the terminal by one line: workbench.action.terminal.scrollUp Ctrl-Alt-PageUp
Just add these lines into settings.json file and it will take effect instantly.
"terminal.integrated.fastScrollSensitivity" :1 ,
"terminal.integrated.mouseWheelScrollSensitivity":0.1
I've added the values as 0.1 because it was better for me , you can choose your sweet spot.
settings.json file , where you need to add the above answered values
It has been implemented in xterm
To enable smooth scrolling in VSCODE terminal, go to your settings, search for terminal smo and
simply toggle it on:
I undocked the dev-Tools of chrome so that when pressing F12, another window opens, showing the DEV-Tools.
Problem: For I-don't-know-what-reason the window moves to a random position whenever it's opened. currently it moved so far, that its coordinates are fully outside of my desktop. It always moves at least somewhere nearly outside my desktop.
Question: How to restore the window positioni if it's not reachable for grabbing?
How to avoid this happening again?
I had the same problem, turns out it was because I had multiple monitors and one of them had display scaling set to 125%, when I set it back to 100% the developer tools windows always appeared where I could see it entirely.
You can change the display scaling by right clicking the desktop and then clicking Display settings, look for the setting Change the size of text, apps, and other items, if it's already at 100%, click on another monitor at the top and check again.
Of course you might not like having the monitor at 100% scaling (everything will be smaller), but at least it works!
Window 7.
In the Eclipse IDE, when I PageUp and PageDown, it jumps to the next bit of code without any scroll effect, which discombobulates me. How can I enable scrolling? Is this called smooth scrolling?
It's not just Eclipse.
When you press the Page Up button or the Page Down button in Word, Notepad, or just about any other Windows application, you go to the previous or next section, respectively.
This has been standard Windows behavior since at least Windows XP.
Edited to add:
If you have a mouse wheel, you can get an effect that Microsoft calls smooth scrolling. By rotating the mouse wheel, you can move the Eclipse editor up or down a few lines at a time.
But I don't think I've ever seen the same effect with the Page Up and Page Down buttons.
Try this Eclipse plugin for smooth scrolling. Use middle mouse button, like when you smooth scrolling on internet browser.