If OTOH you're discussing a keymap for Visual Studio it's not relevant to this forum.
If it is to put FPC under an other IDE like VS/VSCode, it is relevant, but should be moved to FPC subforums (not lazarus subforum).
If I create Visual Studio keymap, how I publish this&
... should be moved to FPC subforums (not lazarus subforum).
It would be nice, if someone could contribute Export/Import of keymaps....maybe, I could do that!
It would be nice, if someone could contribute Export/Import of keymaps....maybe, I could do that!
it has been my long time struggle xD
note: Keymaps is hardcoded in "C:\lazarus\ide\keymapping.pp"
The big question is, if an exported keymap should beWhat is "diff"? i think it's something that only IDE itself could use of, since it's aware of what is considered "default".
- a diff to one of the predefined sets. (That could over time cause issues, if the predefined set changes)
- a full export
- either of those - user can choose during export.
There is a similar feature for Colors and Advanced-Mouse-Config already.For Colors I can only see "Export"... should there be an import too?
todo: check if there're any "standards" in the keymapping world (similar to .editorconfig)
What is "diff"? i think it's something that only IDE itself could use of, since it's aware of what is considered "default".
When brining the set of keys from one configuration to another, the "default" for source and destination systems can be different.
Thus the concept of "diff" makes no sense.
Start off with some fairly standard mapping, and then have a brief list of how the current settings depart from it.and which mapping is standard for Larazus IDE?
Start off with some fairly standard mapping, and then have a brief list of how the current settings depart from it.and which mapping is standard for Larazus IDE?
is it standard for all operating systems Lazarus runs on?
So you edited your copy of keymapping.pp ?
for the discussion. Does it worth to modify loading XML process, thus it could understand characters, instead of integer codes for keys.
(and if the actual number needs to be specified, it could be prefixed by some character)Actually, in that case the XML could have a "KeyCode"
Btw, Visual Studio keyboard map XML is attached. It is based on Tango600's keyboard schema.
IIRC by default Ctrl+/ comments the current line/selection. Never mind which Keycode the "/" has on the users keyboard layout.I see what you mean. Indeed layouts have different characters per same keycode.
I don't know what the dialog uses.it's based of KeyAndShiftStateToKeyString (at LCLProc) (KeyCodeStrings array)
I did put the description here: https://github.com/skalogryz/Lazarus/wiki/keybordschemas#Keyboard_Schema_FilesIt should be put to Lazarus Wiki.
QuoteI did put the description here: https://github.com/skalogryz/Lazarus/wiki/keybordschemas#Keyboard_Schema_FilesIt should be put to Lazarus Wiki.
Should I do it?