I want to make a separator in code with (for example) 50 ‘#’ chars like that:
##################################################
In vim or emacs it can be done by “repeat input” feature.
Do you know any way to repeat a character n-times in Eclipse? (would be great without plugins)
The options would include installing a VIM plugin for eclipse as answered in this question : What vim plugins are available for Eclipse?
OR,
A very simple AHK script would do this beautifully :
The code I just tested that would do this is :
This script would repeat the selected string 50 times in Eclipse on pressing
Windows + RorAlt + Ctrl + Shift + R.I have shared the script as well as an executable for it here. The executable was created by compiling the script. If you are uncomfortable executing it, you can download the portable version of AHK from here. With the portable version, you will have to manually associate the
.ahkfiles to Open withAutoHotkey.exe.Here is a (not-so-great) screen-cast showing this in action.