don't restart from beginning when searching text - sublimetext2

I looked in the settings but apparently Sublime Text doesn't have an option to disable the restarting from beginning when doing a search.
I want that SB stops at the end of file when he finished searching

When you open the Find bar with CtrlF (⌘F on OS X) there is a button to "wrap" the search:
If the button is not selected (as shown above), then Find will stop at the end of the file, and not "wrap" back to the beginning. This option is also available in the Replace dialog as well.

Related

How to not close the editor window when closing the last tab in VS Code

If there's only one tab on an editor in VS Code, the default behavior is to close the editor right then and there.
Personally, and I think many others agree with me, this behavior is very annoying since the programmer would rather preserve the layout he or she created for the project's workspace.
How do I change this behavior?
I've found discussions on this topic, but all of the solutions do not seem to be the ideal one of simply leaving the editor open but empty. Most of them simply delete the related shortcuts, which seems to me like cutting your arm off just because you broke it.
Anyway, here are some useful links:
Superuser StackExchange: How to prevent VScode from closing editor when pressing ctrl+w with no tabs open?
Issue #54492: Remove CtrlCmd+W keybinding to close window when no editors are opened
The behavior of the shortcut ctrl+w is as-designed closing the application
Actually, VSCode 1.57 (May 2021) will change that:
Removed Cmd+W / Ctrl+W as keybinding to close window when no editor is opened
We have gotten feedback that users are frustrated when the window suddenly closes after having closed the last editor via rapid Cmd+W / Ctrl+W usages.
A quick poll in the team also revealed that many had the keybinding for closing a window unassigned, so we went ahead and removed Cmd+W / Ctrl+W as keybinding to close window when no editor is opened.
You can easily bring the keybinding back by configuring it as follows:
{
"key": "cmd+w", // use "ctrl+w" on windows
"command": "workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
}
Note: on all platforms there is a dedicated assigned keybinding to close the window:
macOS: Cmd+Shift+W
Linux: Alt+F4
Windows: Alt+F4
If what you are looking for is to preserve empty groups as well as empty editor windows, there is an option in the preferences that gets you almost all of the way:
"workbench.editor.closeEmptyGroups": false
This has the effect that an editor group will stay open even if the last tab within it is closed.
but all of the solutions do not seem to be the ideal one of simply leaving the editor open but empty
Reddit has an answer providing you the ideal solution of leaving the editor open, but empty: close all tabs but leave editors open.
In brief, they suggest to use in rapid succession the "close all editors" and the "three column editor layout".
They suggest to create a macro like:
"macros": {
"closeAllTabs": [
"workbench.action.closeAllEditors",
"workbench.action.editorLayoutThreeColumns"
]
}
then bind it to a key combination. macrosRe is advised.
The behavior of the shortcut ctrl+w is as-designed closing the application, see #49023. It is advisable to remove the shortcut and cut the arm, since it is design to work like that. However, for version 1.43.1 a new comment was posted this year on a thread you linked. You might want to have a look at it as well.

Preventing Sublime to Search Automatically

I am working on a XML document that contains huge amounts of data. Whenever I want to make a search regarding to a specific keyword (let's assume a 4-letter-word) by typing just the first letter, the sublimetext 2 automatically stars searching thus freezes for a fair amount of time which is quite disturbing.
Is there any way for me to prevent sublimetext doing so? For example, it may wait for me till I press the "enter", or it may start searching after 3 letters are typed.
The Sublime Text find panel has a little toggle button called "Highlight matches". When this is enabled, Sublime searches instantly as you type. When it is disabled, Sublime won't search until you press Enter or click one of the Find buttons.
Here is a screenshot of ST3 showing the button:
Build 3105, Default theme:
Build 3156, Adaptive theme with orange accent:

Hotkey to jump past closing brackets in JetBrains PhpStorm

Right now I'm just using PhpStorm to work with some HTML, and it's great in that it auto indents and automatically closes out HTML tags.
The only problem is this feature doesn't really save me any time because I then have to use my mouse or arrow keys to navigate past the closing tag when I reach it. For example I type <p> and it closes it out <p></p> with my cursor in between, but when I'm done I either have to manually navigate past the closing bracket or use Shift+Enter to jump down to the next line (which isn't always what I want to do).
Is there a command that will just jump me to the end of the next closing bracket, or is there a way of setting this up? I've googled it but haven't been able to find anything.
I've googled it but haven't been able to find anything.
Well... Help | Default Keymap Reference has the most needed shortcuts and actions listed and the one you need is there.
In any case:
Ctrl + ] -- Navigate to code block end -- will jump to the closest closing tag (in HTML) or brace/closing keyword (CSS, PHP).
Ctrl + [ will do the opposite -- jump to the opening tag.
There are few other actions that can help here but may not have any shortcuts assigned by default -- check them in Settings (Preferences on Mac) | Appearance & Behaviour | Keymap (it has search by action name and even by already assigned shortcuts).
Another alternative (or better say -- advanced navigation) would be using AceJump pluign (you have to see it in action -- you either like or hate it).. or even Vim mode navigation (via IdeaVim plugin).
The simplest way to go about this is to press Command + -> (command+right arrow key) when your cursor is inside the brackets, and this will bring you behind the last bracket.
At least, I believe this is what you're asking.
hi, use mac os for: cmd + option + ]

How to make a specific file always visible on the sidebar everytime I open sublime text 3

I switched from Notepad++ to Sublime Text 3 last week and I'm loving it. I know Notepad++ don't have a feature like this also, but is there a plugin or setting on Sublime Text 3 that I can use to make a file always visible on my sidebar every time I open it? I have a single text file that has some login info and useful note for my development and I want Sublime to remember to at least add a shortcut on that file on my sidebar so that I can access it anytime I want to.
I want workdocs.php to be always visible on my sidebar when every I open my Sublime Text 3. Thanks in advance!
It's not exactly what you want but you could try Sublime FavoriteFiles:
https://github.com/facelessuser/FavoriteFiles
It's ST3 compatible and works well. You can assign keyboard short-cuts to the various commands or use Control + Shift + P to access them quickly.

Sublime Text 2 'Find in Files' open drawer at bottom rather than displaying results in a tab

Need help on this one! When I used to use the 'Find in Files' feature it would display the result in a tab so I could go back to reference it later.
For some reason, one day it switched so that the results open up in a drawer at the bottom of the sublime window.
This is not ideal because it takes up window real estate.
it's aggravating to have to go and toggle the results panel every time I need to reference the results. Would be much easier if it was in a tab.
I've tried looking in all my preferences and nothing seems different so I'm lost on this one.
Found it! Turns out it is the 'Use Buffer' Button on 'Find in Files' looks like I had mistakenly hit that on a search.