I do a lot of text editing for work and there are some phrases that I have to type frequently. What’s the best way to quickly paste those phrases into a document using a shortcut or keyword? I mainly use Kwrite and Kate as i prefer plain text editors and need no formatting.

  • stale_cheetos@sh.itjust.works
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    9 months ago

    Visual Studio Code has this feature. You can define user snippets using a JSON format and create any alias you like for each. Then, when editing a document you just start typing the alias and press tab when it suggests the snippet (no mousing around required).

    You can also create anchor points for variable content that you then tab through and fill out after inserting a snippet. If you find yourself using the same template for your writing this might be a helpful feature.

    I’m bad at describing things, here’s some documentation: https://code.visualstudio.com/docs/editor/userdefinedsnippets.

    This is all out of the box with no plugins installed. Also, I’ll point out that although the docs are coding related, you can make these work for any type of writing.