In Sublime Text 2 it's possible to toggle overwrite mode with cmd+alt+o, but what I'd really like is to toggle it automatically on commenting, ie. whenever typing "//"
Is it possible without too much fuss?
Related
I wanted to bind hotkey in Sublime Text 2 like this:
[
{"keys": ["ctrl+alt+m"], "command": "toggle_menu"}
]
After I tried to use it, but nothing happend. Later I realised that I don't have 'toggle_menu' option at all. In ctrl+shift+p menu there is no view: Toggle Menu and in the View tab either.
enter image description here
Tell me how to add the 'toggle_menu' action, please help!
Sublime Text 2 has no ability to hide and show the menu, so there is no menu entry, command palette entry or command to toggle the state of the menu. This is also something that's outside the purview of any plugin. The page that told you about that particular command was mentioning Sublime 3 functionality.
As a result, if you want to add the toggle_menu command, you need to be using Sublime Text 3 and not Sublime Text 2. Sublime 3 includes this ability using that exact command, so what you've tried to do will work just fine there.
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:
I recently moved to Sublime Text 3 for development and trying to figure out a way in which I can know whether a file is saved or not just by looking at it in the editor. For e.g.
Eclipse puts a star in front of the file name if there are unsaved changes
Notepad++ changes the tab color as red
Is there any such easy to see visual cue in Sublime Text 3 to know if a file has unsaved changes?
By default Sublime Text displays dot (•) instead of x used to close tabs when there are unsaved changes.
You can make this highlighting of modified tabs even more distinctive using following property which causes modified tabs to have different color:
{
"highlight_modified_tabs": true
}
The color of modified tabs with this property enabled will depend on the theme you are using. If you want to change it, either change the theme or change the color manually in your settings. See this answer for more details on that.
In Sublime text there is a indication on the tabs, a full circle is not saved, a cross (x) is a saved file, indicating that you could close it.
Not saved file:
Saved file:
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 GotToAnything was superb, I want to highlight a file name in my source code then I press the CTRL + P it will auto select that file. I can do copy and paste. But sometime its not quiet right.
Is there any plugin to shortcut to do that.
GotoSelection I haven't used this, but it seems to be just what you want.
The description: Small plugin for Sublime Text that pre-fills the Goto Anything overlay with the selected text or current word.