I am trying to create a template in notepad++. Where my fields are hard coded as in I can highlight and delete but my fields stay and the values are erased. I could just copy and paste the template over each time. But I’m lazy as hell. Any ability to remove more button clicks is a win lol

  • ohto@lemmy.sdf.org
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    You can make this a macro and trigger it with just a hot key.

    Select Start Recording in the Macro menu. Open the search dialog, in the “Find what” field just type three characters: “:.*” (that’s a colon, period, and asterisk). In the “Replace with” field enter just a single colon. Switch search mode to “Regular expression”, and make sure “matches new line” box is not checked, and hit Replace All.

    Now Stop Recording in the Macro menu, and then Save Current Recorded Macro. Give it a name and optionally a hot key, and note you can run it from the Macro menu or the hot key.