Navigate back and forth between recently opened files - sublimetext2

Is there a keyboard shortcut in Sublime to navigate back and forth between recently opened files? Something like Alt+Right and Alt+Left (an example from Eclipse or web browsers). If not, is there a way to create a custom shortcut like this?

You can use the following shortcuts to navigate through different open files:
CTRL+PAGE UP Cycle up through tabs in taborder
CTRL+PAGE DOWN Cycle down through tabs in taborder
CTRL+TAB Next recently used file
CTRL+SHIFT+TAB previous recently used file
More Shortcuts for sublime can be found here.
Custom shortcuts
Go to Preferences > Key Bindings-Default and find the binding that you need and copy the command. The next step is to open references > Key Bindings-User where you paste and edit the command.
More concrete info about custom shortcuts can be found here.

It is possible if you still have them opened. Other than that
That's CTRL+TAB / CTRL+SHIFT+TAB.
Other than that, if you need to have possibility to open recently closed files, you may try doing it with CTRL+SHIFT+T (open last closed tab), try this package out or even visit this thread and see if it still works.

If you have a large number of files open, you can use ctrl + P, and use GoToAnything.
Unofficial doc information

Related

Octave (GUI): Clear all variables of the work environment in one go

GNU Octave, Version 6.1.0, using the GUI:
Is there a way to clear all variables that are listed in the work environment without restarting Octave and without clicking and clearing every single variable?
This is needed for a cold start when switching to a new task, when you still want to keep opened the already opened files.
Taken from the helpful comments, here are the ways to choose from:
Type "clear" in the editor.
Edit->Clear Workspace in the menu.
Not recommended of course, but possible: you could also just close the GUI and open it again. Then, you should at best use the setting to re-open tabs from the previous session when you close the GUI and open it again. See Edit -> Preferences -> Editor -> File-Handling -> Restore Editor Tabs from previous session on startup or when editor is shown again after closing

How to open recently closed file in PhpStorm?

I am looking for shortcut to open recently closed file in PhpStorm.
I know some similar shortcuts but I am looking for command which is the same like Ctrl + Shift + T in browsers...
There is such a command exists already but it does not have a shortcut. I always assign Ctrl+Shift+T for it too.
Press Ctrl+Alt+S to go to settings and search for reopen clo...and assign a new shortcut to the command under Keymapsection.
Additionally this may come in handy too.
To open a recently opened file, choose View | Recent Files on the main
menu or press Ctrl+E. Then select the desired file from the Recent
Files pop-up window, that opens.
In addition to Umur's answer, PhpStorm has the convenient Ctrl-E shortcut for Recent Files which is already bound by default. It's not restricted to closed files, though, but it's still very convenient to move around between opened or recently closed files.

PhpStorm multiple project navigation, quick switch between projects

How can I open few projects in left work area in PhpStorm? I need to quick switch between projects.
If you want to open more than one project in this way (and by this I mean so they have their own different settings), then currently it is not possible.
http://youtrack.jetbrains.com/issue/WI-15187 -- vote/star/comment to get notified on progress.
If you need to include files from those projects for reference purposes (to see how you have done it there, to copy some code from there etc) -- you can include them under "External Libraries" -- Settings | PHP | Include paths. Files included this way are protected from modifications.
If you need to modify those files ... you can add them into actual project as Additional Content Root (Settings | Directories| Add Content Root) -- such folders will be treated as part of the actual project with no separate settings.
Other than that -- Alt + Tab (or whatever the shortcut is on your OS) to switch between different PhpStorm windows (each project is opened in separate window/frame).
This is a right on time answer.
It is possible to quick switch between project by adding a keyboard shortcut to the "manage project" menu.
To do just that, go to Settings > Keymap and search for "Manage Projects". Then add it the keyboard shortcut you desire and you're all set.
Hope this will help someone looking for an answer like I did.
As LazyOne said, you can add paths to your project from Setting | PHP | Include paths or from the useful keystroke F4.
But I'd like to also share how I organise my projects, I think when you create a project, you should not open a new window but instead open it in the same window.
This way you don't get confused between the different opened windows.
In settings you can assign a keystroke to Reopen recent projects. I then use ctrl + shift + R but it is up for you to chose the keystroke you like.
Hope this will help you as I struggled as well to find a way to manage all my current projects.

Sublime text Autosave only for specific files

I don't want to hit cmd+s all day when I code a web UI using Sublime Text 2.
SCENARIO:
Sublime Text with LiveStyle plugin
Google Chrome with Live Style addon
WHAT I DON'T WANT:
Hitting cmd+s every time I edit an html/js/css file
Applying a global autosave solution like "save_on_focus_lost": true to all files of a project (e.g. python or php files shouldn't be autosaved)
WHAT I WANT:
Autosave and automatically reload only certain files of my project in Chrome (thanks to LiveStyle)
QUESTION:
How to selective apply an autosave setting (or plugin) like "save_on_focus_lost": true only to certain files within a project?
Any alternative solution is welcome
Don't know anything about LiveStyle, so I'll speak to the autosaving specifically. If it's all files of a particular type, you can create a syntax specific setting. If it isn't you can write a plugin that ties into the on_load or on_activated event. When this event is triggered, you can apply a setting to the view. Assuming you have the view, you can do something like view.settings().set("save_on_focus_lost", True) in the plugin.

IntelliJ IDEA compare tabs

I'm using IDE 10.5 Community edition.
In one project, I have multiple modules. I also have opened multiple tabs in the editor from different modules.
Is there a way to compare the content of two different tabs in the editor, which can be from different modules?
Select two files (with pressed Ctrl) in project view panel → Right Mouse button → Compare Files.
Right click on the file in project view → Compare With... (Ctrl+D)
If you have opened one file in editor you can navigate in project view to another file and press right mouse button on that file Compare with Editor.
It is possible to compare file against your clipboard content. View → Compare With clipboard
Also you can use idea as external diff tool idea diff file1.txt file2.txt
Outdated; Old verison of IntelliJ: Also you can compare files from 'Commander' tab, just select two files in right and left panels, right click on any of them → Compare two files
There is a plugin Compare Tab With Editor which may not have existed when this question was asked. I'm using it with IntelliJ 2017.2.
There is an updated version for IDE versions 2020.3 — 2022.1, Compare Tab With Editor 2.
One simple solution is the 'Compare with Clipboard' function (in your contextual menu - right click), which allows you to compare the contents of an editor tab with whatever is in your clipboard. As long as you can copy something, you can compare it against a file...
In 2019, select your file and "compare with editor" (which is your opened tab)
I use this to have a config file loaded in intelliJ (which is changed by the server, not stored in my project) and need to compare it to a baseline (in my project)