Keyboard shortcut for changing windows in Octave - octave

Is there any way to change from, for example, editor to command windows, or current folder etc in Octave? In Matlab, this can be done through the "Next tool", that is "Go to the next workflow step", which I normally set to be "Ctrl+Tab". This means, I just need to repeatedly hit the Ctrl+Tab buttons until I get to the window that I want.

You can see all available shortcuts or set your own from the preferences (Edit -> Preferences -> Shortcuts).
There is no 'rotating' shortcut, but you can set shortcuts to go to the particular window you want directly. The default shortcuts are:
Ctrl + 0 : Command Window
Ctrl + 1 : Command History
Ctrl + 2 : File Browser
Ctrl + 3 : Workspace
Ctrl + 4 : Editor
Ctrl + 5 : Documentation
Ctrl + 6 : Variable Editor
Similarly, adding shift to the above toggles their visibility on or off.
More importantly, if the reason you need tabbing is because you keep having to switch from the console to the editor, note that you can actually drag the editor from its titlebar and place it separately alongside the editor so that the two appear side-by-side.

Related

Multiple cursors in PhpStorm like Sublime Text 3?

You can use Alt + Click to set multiple cursors in PhpStorm but if you want to quickly make an array of some list like this, it's simply too many lines to click: (example from Sublime Text 3)
In Sublime Text 3 you simply select all the lines and hit Ctrl + Shift + L and it will set cursors at the end of each line and then you can hit Home button to set the cursors at the beginning or whatever.
I can't find anything in docs... maybe someone knows how to do this in PHPStorm or at least how to make some keyboard shortcut with macro or something?
Such action is available from 2020.2 version -- see IDEA-122181.
It's called Add Caret Per Selected Line and by default has Alt + Shift + G shortcut on Windows (⌥⇧G on Mac).
There is also Extra Actions plugin: it claims to do that and a few other things.
Current alternatives (that are much easier than the mentioned Alt + Click):
Just go into Column Selection Mode (from the "Edit" menu, Alt + Shift + Insert on Windows, Cmd + Shift + 8 on Mac). Exit that mode when done.
Alternatively, to add multiple carets (Clone Caret Below / Above):
On Windows: Press Ctrl twice, and then without releasing it, press the Up or Down arrow keys.
On Mac: Press Ctrl + Shift + Down / Ctrl + Shift + Up
You can also make a multiple selection by pressing Shift + Alt and dragging the caret.
From https://www.jetbrains.com/help/phpstorm/working-with-source-code.html#multiple_cursor

How to return to previous line of code after Ctrl+Click in PhpStorm?

How to return to previous line of code after being moved by Ctrl+Click in PhpStorm?
In main menu look at "Navigate | Back" action and use that shortcut (as it will be different depending on your OS and Keymap used).
On Windows with Default keymap it will be Ctrl + Alt + Left

Is there a keyboard shortcut to select current line in PhpStorm?

In PhpStorm there is shortcut to extend selecting ctrl + w. It there shortcut to select all current line? I looking for something that works like ctrl + l in Sublime?
Such action is available ... but assigned shortcut (if any) depends on actual keymap used.
In any case:
Settings/Preferences | Keymap
Locate Editor Actions | Select line at Caret entry (HINT: use local search box)
Assign any shortcut you wish (or use provided one, if that keymap has one)
P.S.
If you want to select current line to copy/cut it as a next step ... then you can just use Copy or Cut straight away -- it will copy/cut current line if no selection is made (default behaviour -- can be turned off via hidden setting).
Yes - go to Settings > Keymap and search for "Select line at caret". You can map it to any keyboard shortcut you like by right-clicking it and select "Add Keyboard Shortcut".
If you try to assign a keyboard shortcut which is already assigned to something else, PhpStorm will let you decide whether to continue or change your keybind.

Shortcut key to go to last opened panel (dev panel) in Chrome

Is there a shortcut key to switch between the Chrome dev panels while you are working there like the ALT+TAB functionality for Windows?
If not, then is it possible to configure it or write a plugin for this purpose?
Also, I know that we have this shortcut key Ctrl+[ and Ctrl+] to move between the panels but how to get to the last working panel with keyboard shortcut key?
For example:
You want to switch between two panels:- sources
In the Dev Tools, there's a handy Shortcuts reference, accessible by going to Settings (gear icon).
Of note:
Ctrl + [ / Ctrl + ] Go to the panel to the left/right
Ctrl + Alt + [ / Ctrl +Alt + ] Go back/forward in panel history

Collapse all expanded sidebar folders in Sublime Text 2

Is there a menu option or keyboard shortcut to collapse all expanded folders in the sidebar? It gets messy over there and seems like there should be a better way than closing them one by one.
On OSX: option + left click at the root node.
On windows/linux: control + alt + left click
For Sublime Text 3 on Linux Mint 17.2 w/ Cinnamon I had to disable the following setting:
System Settings->Windows->Behavior->Moving and Resizing Windows->Special key to move and resize windows
After that Alt+left click worked!
Keyboard only
To collapse all expanded folders in the sidebar on macOS:
ctrl + 0: Focus the sidebar
home or cmd + up: Select first root folder
ctrl + left: Collapse all sub-folders (confusingly, not alt as per the equivalent mouse action).
(optional) right: Expand just the top level folder.
Thanks to the existing responses that provided this info.
I've not tested on other platforms, please update the answer if you can.
In Sublime Text 4, pressing "option/alt" on your keyboard and clicking a folder in Sublime's sidebar with your mouse, will collapse all sub-folders within the folder you clicked. I'm using a Mac. I'm not sure what happens on other operating systems.
using purely keyboard, on a mac, to unfold
CMD + K + 0
to fold, depending on the level of indentation
CMD + K + {level of indentation number} (eg. CMD + K + 2)
Refer here for more details functions of sublime text. Found this really helpful