In Eclipse, I am able to do Ctrl+M while I am typing in the editor to full-screen the editor and temporarily hide all the side-windows. Is there a way to achieve this in RStudio? The code editor portion of the window is very small and yet I don't feel like manually fiddling with the mouse to resize my console/plots/workspace windows.
The view menu doesn't offer much else than zooming in/out.
All shortcuts Alt+Shift+K
You can make the editor fill up the entire rstudio window with Ctrl+Shift+1. Also to restore.
To move between the panes, the shortcut is CTRL + number.
1 - source
2 - console
Adding shift to the shortcut makes that pane fill up the spaces.
The best solution I've found is to use a "source window", i.e. pop out the editor into a separate window temporarily:
This window can then be expanded to fill the whole screen:
Only way I know how is to click on the right hand side of the title bar of the source code section where it has 2 windows symbols. The right-most one expands the code window to the entire left hand side.
Instructions and documentation below from the R studio manual:
http://www.rstudio.com/ide/docs/using/console
If you're running on Linux, you can install RStudio Server, just for use on the same computer. It's almost exactly like the regular RStudio, but inside a browser. I prefer it because I can full screen, and can use the browser's Find in the console.
Related
Is it possible to scroll horizontally with the keyboard/mouse wheel in Visual Studio? I can do this via Ctrl + Up or Ctrl + Down, or just use the mouse wheel, for vertical scrolling, but I could not find out how to scroll left/right via Googling. I'm using Visual Studio 2017 RC.
edit: Just came across this, but it seems to be only compatible with VS2015. When I tried to use it with VS2017, it errored out.
One approach is to directly modify IWpfTextView.ViewportLeft for the active view. You can use the following two commands Scroll the current text editor horizontally for my Visual Commander extension and assign to them shortcuts like Ctrl+Right Arrow and Ctrl+Left Arrow.
You can assign custom keybindings to the Edit.ScrollColumnLeft and Edit.ScrollColumnRight commands. To do so:
Open Tools -> Options -> Environment -> Keyboard
Show commands containing 'ScrollCol' (short enough to find these two)
For each command, set focus in the Press Shortcut Keys box and type your desired shortcut.
When you've found the keybinding you want, click the Assign button to save it.
In the image below you can see that I've set Ctrl+Alt+Right to map to Edit.ScrollColumnRight, and Ctrl+Left is already assigned to the Edit.WordPrevious command when in the Text Editor.
Maybe, if you click in the center button on the mouse and then navigate across?
You need to go manage entension and search 'slideScroller' extension. Downloand and install. It's done. After then scroll horizontally with shift+left Mouse.
Most OS X applications with tabbed interface allow using Cmd+Shift+[ and Cmd+Shift+] to switch tabs.
VSCode does not follow this. Is there a way to configure it to use these shortcuts to quickly switch to the next (towards right) and previous (towards left) tab.
This behavior is different from Ctrl+Tab behavior which shows a menu of most recent buffers. Repeatedly pressing Ctrl+Tab will keep alternating between same two recent buffers. But I would expect both Cmd+Shift+[ or Cmd+Shift+] to cycle through all the tabs, in right to left and left to right direction respectively.
You can bind every shortcut yourself if you want. Open you keybindings.json (via command palette or menu Code->Preferences->Keyboard Shortcuts).
Pressing cmd+k cmd+k gives you a little input field that prefills the correct JSON syntax.
The commands for switching tabs are called workbench.action.nextEditor and workbench.action.previousEditor
I'm pretty new to R programming. I'm using R studio, and all of a sudden it's no longer showing the workspace, it's only showing the console.
This is what it is supposed to look like
And this is what mine looks like now.
In Eclipse, whenever the workspace gets out of wack, I can just reset the perspective and everything it back to normal. I can't figure out how to do that in R Studio.
The default layout seemed to disappear after I restarted my computer.
Go to View > Panes > Show all panes
Opening a script file should split the windows horizontaly. If that doesn't work, click on the icon on the top-right corner of the RStudio window showing to windows:
This should at least show the console and file panels.
To restore the side panels, move your cursor to the extreme right of the window, until the cross arrows cursor appears (), and drag it to the middle of the screen.
For all panes to be shown, go to View-> Panes and tick show all panes.
Otherwise, ctrl+Shift+Alt+0 also worked for me.
Thank you.
Can you try saving an image of your workspace? Below are a couple of links that might help.
Workspace link 1
Workspace link 2
My computer is set up already in such a way that it automatically loads up the previous workspace I decided to save. A more qualified person would be able to tell you how and why it retrieves the previous saved image instead of a blank one like yours.
I also just got stuck for some time with the vertical split of the panes malfunctioning. I was always stuck with just 2 out of 4 panes.
I'm a pretty confident RStudio user and I tried many things like 'show all panes', moving panes around, clicking the 'hide-window', 'enlarge-window' and 'double-window' icons.
In the end I realised that the panes that were minimized didn't actually have the bar with the title. Instead these we only lines of 1 pixel height.
The solution for me was to expand the bottom panes and then hover near the 1 pixel height line at the top. This changed the cursor into the hand-cursor, which allowed me to drag the top window down, and back into view with the other pane.
In Xcode, I am big fan of the assitant editor that shows me the corresponding .h or .m for the file that I am editing.
Is there a shortcut that allows me to swap focus between this two windows? I frequently switch between the two and using the mouse every time is annoying.
New answer:
Move Focus To Editor — commandj followed by ←/↑/↓/→ and return
This goes nicely together with commandshiftj which is Reveal in Project Navigator.
Old answer:
Use optioncommand` keyboard shortcut.
It can be remapped in Preferences - Keyboard Bindings - Move Focus To Next Area.
Edit: Removed XVim recommendation.
#Oneiros: Not quite what the OP was asking for..
I don't know of a 'short' shortcut but there's Cmd-J showing a popup where you can choose what to focus.
I made this to help answer another question... Does it help?
Xcode 8+
This is the easiest option:
^` - Move Focus to Next Editor
When using multiple assistant editors, ⇧^` moves focus to previous editor.
Xcode 4+
⌥⌘` - Move Focus to Next Area
⇧⌥⌘` - Move Focus to Previous Area
Using this option you can switch between Project Navigator (left pane), Primary Editor, Assistant Editors, Utility Area (right pane), Debug Area, etc.
⌘J - Move Focus to Editor...
Using this option you can choose where to move the focus using graphical navigation chooser.
For Xcode 4.4:
Use Cmd+Option+` (left to number 1) to Move Focus to Next Area, and use Cmd+Option+Shift+` to Move Focus to Previous Area
For Xcode 4.3:
If you only have the Editor and Assistant open, use Cmd+Option+. to switch between them (Navigator>Move Focus to next area)
Also, if you want to open a different file in the right pane, like the .xib or any other, press
Command ⌘shift ⇧o
The open quickly window will appear, search the file, use capital letters to filter through camel case notation, then press
Alt ⌥enter ↵
The file will be opened in the assistant window
Switching between .h and .m:
Control ^Command ⌘Up Arrow ↑
You can do this:
Assume you have Standart(S) and Assistance(A) editor opened and you want swap them.
1) Double tap with holded Alt to line in navigation bar of S editor with file name (look screenshot). This file will open in A editor.
2) In A editor tap Go Back and do 1. File from A editor will be opened in S editor.
3) In A editor tap Go Forward.
DONE!
In the Visual Studio editor when you pull the scroll bar down to the bottom of the file, all you see is a blank page, since the text has scrolled up past the top of the text editor window. This makes scrolling to the bottom difficult because you can't just pull the scroll bar quickly all the way down but have to carefully position the cursor so you can still see your code.
How can I make it so that, as in NotePad, when I pull the scroll bar down to the bottom of the file, I see the bottom of the file?
There is a configuration option provided in VSCode for the functionality you specified. To enable it, go to File -> Preferences -> user settings
On the right side of the editor in settings.json paste the below line at the bottom (before closing bracket), save and close.
"editor.scrollBeyondLastLine": false
This will prevent the editor from scrolling beyond the last line.
Inside of VS Code, Press command+,, and search for "Scroll Beyond Last Line" and untick it
If you are willing to use the keyboard instead, pressing Ctrl+End will achieve what you want.