If I create Visual Studio keymap, how I publish this&
You mean you went to menu: Tools > Options > Editor > Keymap?
Unfortunately the IDE does not have an Export or Import function for those settings.
You can find the changes you made in the "
EditorOptions.xml" file, in your "primary config path".
The "primary config path" can be found in menu View > Ide Internals > About IDE.
It defaults to:
C:\Users\<YOUR_USERNAME>\AppData\Local\lazarus or on Linux to
~/.lazarusThe XML in that file has a "<KeyMapping>" section.
So to make your changes available:
- you open that file, and copy that section. Then publish that XML.
- Users who want to use it can (while the IDE is closed) edit their "EditorOptions.xml".
However, your changes will be based on one of the default schemes. Either:
- Lazarus Default
- Classic
- MacOs Apple style
- MacOs Lazarus style
The Mac schemes will have different mappings for the modifier keys.
E.g. "Ctrl-c" will be "Command-C" (IIRC).
Your changes are relative to your selected scheme. (only the diff is saved).
So it may (at least partly) work with other schemes. But likely will need some work for them.
Of course - if for example you are NOT a Mac user - then everyone importing your scheme, if they too are not Mac users, can use the same base-scheme.
But not all Mac-Users wont be happy using a non-Mac base scheme.
Still they can adapt it....
It would be nice, if someone could contribute Export/Import of keymaps....