Be a freshman to Sublime Text 2, I changed hotkeys in "key binding - default", now I know I should use "key binding - user", but the question is how do I restore the default key settings manually? I need to run a compare on default settings so that leave only changed lines to user key settings.
If you changed a Default file in Sublime and saved it, you'll need to reinstall Sublime in order to get the original back - this is exactly why you shouldn't do that. I'd strongly recommend upgrading to Sublime Text 3, as it has many new features and bug fixes over ST2 (which is not being developed at all now), and has been rock-stable for probably 2 years or more. In addition to all sorts of other benefits, ST3 does not allow you to edit Default files.
Related
I am trying to install this VHDL highlighting package for my Sublime Text 2.
I already installed the elusive Package Control following the instructions here.
But when I search for the package within Ctrl + Shift + P, the package doesn't show up!
What do I do? According to the plugin's page, it should work for Sublime Text 2.
The plugin's description is out of date. If you look again at the plugin's Package Control page, you'll see an ST3 icon at the top, just to the right of the author's name. So, you'll need to upgrade to ST3 to use it, and I strongly suggest upgrading anyway. Even though ST3 is still labeled as a "beta", it's rock-solid and a great improvement over ST2 in a number of ways, not the least of which is an improved API that allows for all these great ST3-specific plugins. I've been using it exclusively for well over two years now without major issues.
I am having lots of fun playing with the new CDE, BUT, I have not been able to find much documentation on it.
Does anyone know the default shortcut key bindings? And secret commands?
I understand it is based off of the Ace Editor, but it seems to not follow the default key bindings:
https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts
The one I need NOW is Find and Replace, it is not CtrlR, which appears to be RUN.
I know creating and maintaining documentation is dull, but at some point a simple link to basic features would be nice. Good thing to do while is super cold out right now (Canada).
CDE uses the ACE editor. Here are the default key bindings for it:
https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts
It's complicated...
A cross-OS way to get to Replace in CDE is to press Ctrl-F (Command-F on a Mac) twice. Every subsequent press will alternate between Find and Replace. That's the default Ace behavior, as can be seen it its own proof-of-concept "Ace kitchen sink" page.
I'm not even sure whether Ctrl-R is up-to-date: I've checked a couple of other IDEs that use Ace, and it doesn't work there (Ace's own Cloud9, Zed, ...).
Ctrl-H works on everything except Mac. Unfortunately, on a Mac, its equivalent Command-H is reserved by the system and hides the current window.
I've filed a bug against Chrome Dev Editor to do something about it: https://github.com/dart-lang/chromedeveditor/issues/3803.
Currently, there is no way to see the shortcut bindings in CDE: it's bad, and we (the CDE team) are going to fix that sometime soon.
I was running Sublime , I had many files open, some named, some not. Some named had an x symbol near them so they're fine. But some named had a circle next to them. I know if I closed sublime and opened it, the ones with a circle by them would be fine. But I got a BSOD while sublime was open.
I'd like to know how often and when sublime saves, so as to know whether the unsaved or not yet re-saved files would've survived the bsod.
ST2 only saves when you do so manually. If you quit/etc it will save the changes to memory, however they wont be committed to the file until you do so manually. Personally I like to use the 'save on focus lost' setting, this will save each time you go to any other window (whether in ST2 or otherwise). Here is the code for your settings file if you would like to use it. It has saved me a couple times but there are obvious drawbacks for some.
"save_on_focus_lost": true,
Does Sublime Text (2|3) have an API method or some way of determining if a shortcut or hot key sequence has already been assigned? I have lots of plugins and macros installed, and when making new ones it can be difficult to determine what key sequence to assign it to so I don't conflict with something else. Key bindings can be assigned in .sublime-keymap files in Packages/Default, Packages/User, and whichever plugin wants to assign them. To make things more complicated, I work on three different OSes, and there are different keymaps for each platform. Do I have to keep manually searching all the keymap files myself, or is there a better way to do it?
You might try installing and using FindKeyConflicts.
You can also open a console ctrl + ` and enter sublime.log_commands(True). You can then enter your shortcut/key sequence and see what, if anything, is bound to it.
Are there keyboard bindings to the refactoring commands in MonoDevelop?
A direct answer: Yes, there are.
A bit more useful answer: depending on what you're looking for, quick examples:
Alt+Return is quick fix (given you've got source analysis turned on)
Alt+Insert is code generation (properties, overrides, etc.)
F2 is rename
And, in case you're not aware, all the refactorings for the symbol you got under your cursor are available in the right-click context menu (available by pressing the relevant keyboard key, so it also kind of counts as a keyboard binding ;) )
Apart from that, you can look up and/or change all (or at least many, I'm not exactly sure) the bindings in Options > Preferences > Key Bindings.
Does the above answer your question?
It depends which version of MonoDevelop you are using. With the late 2.x series then there were individual key bindings for "Create Method", "Extract Local Variable" and a few others (see the documentation).
Renaming (including renaming files in the explorer view and renaming variables, classes or anything else in the text editor) is a separate key binding under the "Edit" section and defaults to shortcut key F2.
As of v3.x, these key-bindings seem to have disappeared. Edit > Preferences > Key Bindings still has a "Refactoring" section, but it now only lists Import Symbol, Quick Fix and Show Fixes (none of which I'd necessarily even call refactoring - they're more code completion features). Instead, the refactoring methods are all available as "Quick Fixes" (default: Alt+Enter when Source Analysis is turned on from Edit > Preferences > Other > Source Analysis).
The reason for the change appears to be that the refactoring mechanism has been overhauled and now relies on source analysis, but this isn't quite perfect yet and so isn't enabled by default. As they're part of the Quick Fix system then they've not been given separate key bindings (as I believe there are more of them now).
For me, Source Analysis menu is:
Tools>Option>Source Anyalysis (Under Text Editor) > Enable
Well it does make some changes to the Editor screen, it doesn't really give me useful suggestion for correction (auto fix) like Eclipse, regardless of whether I've press Alt+Enter.