When executing a script line by line in RStudio, the next chunks of code will appear automatically (the auto scrolling gets activated) when you're executing the fourth last visible line. This behavior is fine when having four panes, because it keeps the executed line on the middle of the screen.
I chose to reduce the left down pane to make room for the script. Now I would like to change the auto scrolling behavior, so that the next lines wont show at the bottom of the script (line 27 in picture) but on the middle of the screen(around line 14).
Is this possible?
Under options/global options/code/display, there is an option Allow scroll past end of document and highlight selected line
I am not sure whether this will help you, but to my understanding, Rstudio could not auto-scroll the page and make the line executed displayed at the center.
Related
When I go in next line (outside block of code) my indentation is automatically set (I accidentally turned on that option) few spaces to the middle. How can I delete that automatically set indentation? I want to start from the left side, from beginning, not few spaces away.
I tried shortcuts for indenting but that doesn't change my default auto indent in the next line
I am trying to load a widget (through HTML code) into my Jupyter Notebook's cell. I am trying out ways to get rid of the block shown on left side which shows "click to scroll output;double click to hide" in the below picture:
It's obtrusive. And also is there a way i can make the frame of the slide (highlighted in blue) larger (for only the current cell) so that it's clearer for view ?
I tried changing the "height" and "width" of RISE extension from "Nbextensions" tab but in vain.
This might sound ridiculous but, have you tried to remove this block using your browser's element inspector?
Example (remove code input)
Slide before deleting code input
Selecting correct div
Deleting input div
Slide after deleting code input
Of course it's just a temporarily solution and as soon as you refresh/reload your notebook it will be back as before.
I recently started using Atom and try to make it as nice to work with as possible.
However I couldn't figure out how to change the height of the bottom window (a name for it would already help).
My goal is to have my console etc. as minimalistic as possible.
E.g.:
Atom's bottom window shown here with an output example from Atom-Runner
How do I only show the atom-runner's output and not the grey rest of the window on top of it?
How can I get rid of unnecessary labels like "Atom Runner: data.py"?
I found that you can change quite a bit within the styles.less file with commands like:
atom-workspace {
height: calc(...);
}
But that didn't really help me.
However I couldn't figure out how to change the height of the bottom window (a name for it would already help).
atom-runner displays its results in a bottom panel. There are a few different types of containers in the Atom window:
Panes are the content in the middle of the editor. Panes can hold as many items as you want, which are usually associated with a specific file (see TextEditors)
Docks are the expandable areas just outside the panes (the tree-view and github packages use docks). They can have multiple items and will create tabs for them.
Panels are the spaces on the edge of the Atom window. You can't hide them without disabling the whole package.
How do I only show the atom-runner's output and not the grey rest of the window on top of it?
The "grey rest of the window" is the bottom dock. You can hide it by clicking on the semicircle with the down arrow.
How can I get rid of unnecessary labels like "Atom Runner: data.py"?
I disagree that it's unnecessary, and you might some day find that you need to know what file you ran. However, if you want to do this, you can add the following to your styles.less:
.atom-runner h1 {
display: none;
}
I use Visual Studio Express for the web.
I noticed that when I write an HTML markup such as h1, Visual Studio completes the tag for me. However, in this case I become inside the tag so when I finish writing my text I have to use the mouse to skip to the second line. If I press Enter rather than using the mouse then this will cause the ending tag for h1 element to be in the second line!
Is there a way using the keyboard to skip to the second line when I'm inside HTML tag?
End then Enter will insert a blank line underneath the current line, and move the cursor to it. It will indent to the current level.
Ctrl+Shift+Enter will insert a blank line below the current line, and move the cursor to it. It will not indent to the current level.
Ctrl+Enter will insert a blank line above the current line, and move the cursor to it. It will not indent to the current level.
These can be customised via Tools > Options > Environment > Keyboard (docs)
Some items of interest are:
Edit.LineEnd
Edit.LineOpenBelow
Edit.LineOpenAbove
I use wysihtml5 editor. I can type a text normally only till it fits the textarea window. After that a scroll bar appears (which is fine) but let's say I want to type new line on the very top of the text area and when I press enter the line which was just typed moves up outside of the top border of text area and cursos stays on the same first line. So in order to see the first line in the document I just typed I need to scroll one line up. All that instead of the text line stays in place and cursor moves one line down.
That is not usual text editing beheavor. Why is that? Is that an CSS issue?
I guess this has to be an attribute of the text area itself.. but I have no idea how.. I'm myself a beginner in this..
try to search for extra attribute of text-area like:
<textarea rows="2" cols="20" wrap="hard">
....
</textarea>
good luck..