I have multiple files open in different tabs in sublime text 3. Is there a way to switch to a tab by the name of the file that's open in it? If there's a different text editor that supports this, it'll be equally helpful. Thank you!
If you open the Goto Anything popup menu by hitting CtrlP, the currently opened files will be listed at the top.
You can also select file tabs at different positions in the tab bar by using Alt#, where # is the file's position - Alt1 for the first file on the left, Alt2 for the second from left, and so on. You can use CtrlPgUp/CtrlPgDn to navigate through the tabs in order, and CtrlTab/CtrlShiftTab to navigate through the stack of recently focused tabs.
All of these options are available under the Goto → Switch File menu. Some of the keyboard shortcuts may be different on macOS.
CudaText editor (free) has the command "Find tab by title" in the plugin CudaExt. Command shows menu with the filter field. To install the plugin: "Plugins / Addon manager / Install".
Related
I am using Sublime Text editor and I need to change the settings for Sublime 3 to open files that start with a dot like .gitignore. Please let me know where in the settings I need to make the change. I am using Windows OS fyi.
This isn't a Sublime-specific option, but an operating system one, as the OS determines what is displayed in file dialogs as well as the file system explorer. To set the option on Windows, first open Windows Explorer and navigate to the folder containing the dotfile you want to view. Then, in the View tab, click the Options button on the far right, then select Change folder and search options.
You can also find Options under the File menu.
The Options window will now pop up. Select the View tab, then select the option Show hidden files, folders, and drives. Next, click on the Apply to Folders button at the top.
Similar options are also available on macOS and Linux.
Often I have the case that I have a file opened in the tabs like item_category.xml here:
The project explorer still shows something else. Any way to open the path to item_category.xml in the project explorer? I already checked the right-click menu of item_category.xml, but couldn't find a matching option.
Use that symbol in the project explorer (shortcut: Alt+F1, 1):
More information on the feature: Locate a file in the Project tool window.
If you don't want to use mouse but keyboard shortcut
First option could be assigning a shortcut to Select in Project View may do the trick. It is located under Keymap/Other.
Second option could be to install Scroll From Source plugin for this. The details are here
Set the keyboard shortcut to the function of "Scroll From Source" in Project Panel. You can set the special shortcut by yourself to all OS(Window/Linux/Mac)
Default shortcut is Command + Control + S for Mac.
Is there any keyboard shortcut in SublimeText which I can use or map to bring down the open files list as shown in the screenshot below.
I know I can view it on the sidebar on the left hand side, but I'm looking for a keyboard shortcut to bring the dropdown.
You can do "Ctrl+P" for that. That will work on Ubuntu at least. It will show you the list of recently opened files along with the search box to navigate to any other file.
If you open a couple folders in Sublime Text 3, you'll see entries for each folder added to the Window menu. It appears that the default format of each entry on the menu is:
(active-filename) - (foldername)
The list on the Window menu is sorted alphabetically starting with (active-filename). Whenever you select a file to work on, the (active-filename) part of the entry changes, and the list reorders itself. If you have a dozen Windows open, the position of a given window in the list will change all the time as you work with files. This makes it hard to find a window when repeatedly switching between Windows.
Is there a way to configure Sublime Text 3 to display only the folder name in the list on the Windows menu? Alternatively, is there a way to configure it to sort on folder name and not on the ever-changing "active" filename?
Unfortunately there open issues around this but no attention form the SublimeText Team yet
https://forum.sublimetext.com/t/alphabetize-window-menu-by-folder-not-file-name/13017/4
https://github.com/SublimeTextIssues/Core/issues/1972
https://github.com/SublimeTextIssues/Core/issues/1445
https://github.com/SublimeTextIssues/Core/issues/1179
I am navigating the code of a big JavaScript library using Sublime Text 3. So I need to open a lot of tabs and switch between them to capture the code co-reference. However, Sublime closes 'unused' tabs automatically for me.
How to disable it? I googled but cannot find a solution. I find a shortcut ctrl+shift+t to restore the most recent closed file, but that is not enough. I need to disable the automatic closing, and that would be better if someone shows me the short key to "display and select a file from all open files". Thanks.
When you single-click on a file in the sidebar, Sublime displays it in a "temp" view that is overwritten the next time you single-click on a file. To open a file in a "permanent" tab that stays open even when other files are opened, you simply need to double-click on the file in the sidebar.
A more direct solution that I find mildly preferable, at least until I can retrain myself to double-click when I want a tab to stay open:
In the Settings, set preview_on_click to false.
This is not quite what I want since it all it does is disable the behavior to open a preview tab on single click -- thereby forcing the user to always double click. But perhaps by working this way for a week or so I will be able to retrain my ingrained assumptions and can go back to the default behavior.
Double click that file on left sidebar you do not want to close automatically.