Programmer’s VIM setup for Finnish/Swedish or other non-US keyboard layout

I just keep the keyboard with US layout when coding and only switch to local layout (italian) when writing text that requires accented letters or other language specific characters. After all it’s just a keypress to switch and nothing beats US layout for programming. I tried a bit but found that specifying lots of mappings …

Read more

Can Eclipse the Organize Import (ctrl+shift+o) command’s handling of static imports be modified?

Sure: Window -> Preferences -> Java -> Code Style -> Organize Imports Adjust the value for “Number of static imports needed for .*” to 1, and it will always use .*. Of course, that’s not quite the same as saying, “Just leave static imports alone” but hopefully it’s what you want. Basically, this number says …

Read more

What is the difference between `global-set-key` and `define-key global-map` in Emacs

Function global-set-key is an interactive function based on define-key which you can invoke by typing M-x global-set-key. Function define-key is rather used in Lisp programs. You can look up global-set-key‘s source code with C-h f global-set-key to see that it only wraps define-key. To answer your question, there are no significant differences between them.

Can GitHub Copilot stop auto-suggesting, instead be triggered by a keystroke?

In settings.json (under File, Preferences, Settings), I found that setting the more general option: “editor.inlineSuggest.enabled”: false, Seems to work as I’d hoped. Copilot suggestions are now only provided on-demand, when I press Alt\, and accepted when I press Tab I worry that this might disable other types of suggestions I rely on… but language auto-completion …

Read more