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.
It seems that I've fat-fingered some hotkey and my top tabs in VSCode have disappeared.
I miss them terribly. How do I configure VSCode to show tabs of open files across the top of the window?
Thank you for your help.
Open the command palette using Ctrl+Shift+P and execute View: Toggle Tab Visibility:
You probably set the "showTabs" setting to false. To fix this, open user settings: ctrl+shift+p and type in "user settings" and select the "Open User Settings" option.
Find the line that looks something similar to:
"workbench.editor.showTabs": false,
and delete it. Save the file, and you should see your tabs again.
If that is not the setting, read through your settings file and see if there is something else that may be causing the issue.
In PhpStorm, is there a way to show a file in Windows Explorer (for Windows) or Finder (for Mac)?
Even better, is it possible to add such an option in the menu when I right click on a tab?
Do I need a plugin for that?
You can always use Navigate | Select in... | Show in Explorer (Alt + F1, 8 using Default keymap) for that.
Same shortcut will work from other places (e.g. Project View panel etc).
If you still want to add context menu item .. then you can do that in Settings/Preferences | Appearance & Behaviour | Menus & Toolbars --> Editor Tab Popup Menu. The actual action is called Show in Explorer
I don't find any plugins for do that.
Perhaps because this is a simple function which can launch/call easily with a simple shortcut keyboard.
File > Settings > Keymap > 'explorer' > Other > Show in Explorer.
Add shortcut for this function and you can open a new explorer OS in a same directory that your file is.
Perhaps if I don't understand "Open in Explorer" you can also easily point your view 'project' in a exact directory where is your file is.
For that I assign a shortcut in a function named 'Select In'. With this a menu appear and I can select lot of function and one for target project View directly where is my file active in editor (very useful).
I've got some issues with a custom *.desktop file for Google's Crome Browser for the Unity Quicklist. I've added some additional shortcuts for example for YouTube. The problem is that if no Chrome Window is opened it adds as I click the YouTube shortcut a new Chrome icon in the quicklist (so I have at least Chrome two times in thee list). If I click on "Open new window" or "open new incongito window" it works as it should and set the custom quicklist shortcut "as active".
The Shortcut Entry:
> [YouTube Shortcut Group]
> Name=YouTube
> Exec=/opt/google/chrome/google-chrome www.youtube.com
> TargetEnvironment=Unity
The shortcut Group is listed in the google-chrome.desktop file right after the two standard shortcut groups.
So, what is wrong? Is there any special argument I have to add (besides the '--app=' arg that not really results in a perfect solution)?
[Desktop Entry]
Version=1.0
Name=Google Chrome
GenericName=Web Browser
Comment=Access the Internet
Exec=/opt/google/chrome/google-chrome %U --blacklist-accelerated-compositing
Terminal=false
Icon=google-chrome
Type=Application
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
X-Ayatana-Desktop-Shortcuts=phpMyAdmin;NewWindow;NewIncognito
[phpMyAdmin Shortcut Group]
Name=phpMyAdmin
Exec=/opt/google/chrome/google-chrome localhost/phpmyadmin
TargetEnvironment=Unity
[NewWindow Shortcut Group]
Name=New Window
Exec=/opt/google/chrome/google-chrome
TargetEnvironment=Unity
[NewIncognito Shortcut Group]
Name=New Incognito Window
Exec=/opt/google/chrome/google-chrome --incognito
TargetEnvironment=Unity
This works for me, I had to add the name of the shortcut to X-Ayatana-Desktop-Shortcuts=
Is there a way to close all tabs in one go in Sublime Text, but leave the window with the current project open? It is really annoying when I just want to close all open file and start the new task I have to Cmd-W them one by one. If I do Cmd-Opt-W it will close all tabs and the current project.
Thanks to Alex, it turned out kind of simple, Preferences > Key Bindings > User:
{ "keys": ["super+shift+w"], "command": "close_all" }
No need to restart Sublime, it works right away. And what's even better, no need to get used new shortcuts, you can still close Sublime window with Cmd-W after all tabs are gone.
There's an option in the file menu, but it has no shortcut:
File -> Close All Files
Edit - change user settings:
kay, open Preferences -> Key Bindings - User and paste the following between the []:
{ "keys": ["ctrl+alt+shift+w"], "command": "close_all" }
then use Ctrl, Alt, Shift and w to close all tabs.
You'll have to restart Sublime first.
Note: For Sublime Text 3.2.2,Build 3211 you don't need to restart the sublime text to waste your time.Just place code in [ ](as mentioned above),save it and close Key Bindings - User window.Now all opened tabs will be close with out exiting Sublime Text by using Ctrl + Alt + Shift + W .
Here is what I have set up on Mac Sublime Text 3
1. Go to Sublime Text -> Preferences -> Key Bindings - User
2. Add the following binding:
[
... ... ...
{ "keys": ["command+shift+w"], "command": "close_all" }
]
3. Save file
Now, hitting "Command+Shift+W" will close all of your open tabs. Hitting "Command+W" closes current tab only. This is sort of consistent with Mac shortcuts for other app windows.
By default, closing all tabs don't close the window, but beware: The last build 3059 (December 13, 2013) of Sublime Text 3 does now include:
Automatically closing windows when the last tab is dragged out
It is managed by this setting:
// Set to true to close windows as soon as the last file is closed, unless
// there's a folder open within the window. This is always enabled on OS X,
// changing it here won't modify the behavior.
"close_windows_when_empty": false,
I just want to close all open file and start the new task
In that same Sublime Text 3 build 3059, you also have the setting:
When the last file is closed, a new transient file is created automatically
Combined with "File -> Close All Files", that can help starting quickly in a new file.
Go to Preferences>Key Bindings - User> and add following line.
{ "keys": ["super+w"], "command": "close_file" }
Now when you hit cmd+w, only file gonna close not the whole window because you target "close_file".
The Coolest way is :
File - > Close All Tabs
If you are like me, and actually prefer doing right click on a tab and select the Close All Tabs command, you can:
Run the View Package File command in Sublime Text
Select Default/Tab Context.sublime-menu
Add the line:
{ "command": "close_all", "args": { "group": -1, "index": -1 }, "caption": "Close All Tabs" }
Save. Restarting might be required.
Hints:
Tested in ST3, but the documentation I got this from was for ST2, so it should be fine
Do not forget to add a comma at the end of the line if it is not the last
For me it was not possible to edit the Tab Context.sublime-menu file because the folder it is supposed to be in was missing. It that is the case, just create it, for me it was $HOME\AppData\Roaming\Sublime Text 3\Packages\Default\
It is also possible to just create/edit the file directly instead of going through the package viewing process