Want to repeat a character on a line automatically to right margin

I don't know if this would necessarily be a built-in function, but does anyone know if it is possible to define a "macro" that repeats a specific character from the current cursor position all the way to the right margin? I'm often using series of '----------' or '========' to denote sections in my code, and would love to have this ability in PHPStorm. I looked through plugins repo but didn't see anything.

2 comments

Doubt you can dynamically fill the line with symbols based on cursor position.

Filling a line with a fixed amount of symbols is possible via macros.

0

I guess a plugin would be the next best thing? Reads what the current file's right margin is. Detects the current column the cursor is at. Offsets tab characters to determine how many it would need to push into the buffer.... Hmm.

0

Please sign in to leave a comment.