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.
Related
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 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.
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?
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.
I just got the message of the new released plugin from Emmet in sublime text 2.
I tried it out but i still get the same issue as before meaning I can't make the wrapping action work. None of the demos in the following link are working for me : http://docs.emmet.io/actions/wrap-with-abbreviation/
For instance in the first demo it says "Wrap with Abbreviation" using Shift+Ctrl+A shortcut, and it's supposed to open a dialog box in which you can input your abreviation code wrapping. But it doesn't work. Instead, this shortcut selects the word where i trigger it and if i keep doing so it adds the nearby words or tags, but still no dialog box.
Does anybody has the same issue? Anyone knows how to fix it?
Thank you in advance.
Those shortcuts in docs are for demo boxes only. Your plugin may have different shortcuts.
In Sublime Text: https://github.com/sergeche/emmet-sublime#available-actions