*** Note: You can do it my way below, or you can do what Philippe Elsass (who probably made the feature) says below. Err, thanks Philippe!
“Shortcuts which are not in MainMenu.xml can be changed in plugin settings. Press F10, and look into ASCompletion settings.”
Now back to our regular scheduled irrelevant blog post : )
**************************************
This is a mental note to self. I think I put a note like this on my last blog, and its gone now. Damn internet wreckers!
So I always map F3 to copy and F4 to paste, otherwise my arm gets shooting pain, and not the big H type. F3 is easy, just open ProgramFiles>FlashDevelop>Settings>ScintillaMenu.xml. Duplicate the Copy command, and change Control C to F3. You might as well do paste as well, but it won’t work yet. This duplicates those things in the menu – there is a MainMenu.xml file that has copy and paste, but that didn’t seem to work for me.
The problem with F4 is it is used by OpenDeclaration, and because of this it is added to an ignore list, and is ignored when I map it to paste. I’m not sure the following step is needed anymore, but I recompiled the source and changed the hardcoded value at ASCompletion>Settings>GeneralSettings.cs line 36:
const Keys DEFAULT_GOTODECLARATION = Keys.Control | Keys.F11;
const Keys DEFAULT_DECLARATIONBACK = Keys.Control | Keys.F12;
That still didn’t take. The last thing needed it to go to FlashDevelop’s Tools menu, and select Application Files. This brings up the config folder, and from here you want to load Data>ASCompletions>Settings.fdb
These are binary flashDevelop config files, so you need to load them in FlashDevelop. Add the the part two tags at the top, and change to whatever keys you want:
<GeneralSettings xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema”>
<GotoDeclaration>F11</GotoDeclaration>
<BackFromDeclaration>F12</BackFromDeclaration>
<JavadocTags>
Last caveat: When you save this file is saved, however the settings require a restart. When you close, it will be overwritten with the old settings! Ok, so save, go to explorer and rename a copy, close, switch the copy back, et voila! Now those are remapped, and F4 will paste.
Whew.