snippet ae
æ
snippet SH
ʃ
snippet ZH ʒ
Phonetic symbols in RStudio
If you use snippets in RStudio, then you already know how practical they can be. In a nutshell, you can use a specific command to insert characters/code/text in RStudio. While this is normally used for code blocks, nothing stops you from applying the same logic to phonetic symbols. For example, the snippet below will insert the phonetic symbol æ
when you type ae
and hit Shift + Tab.
To add these snippets, you will need to open Global Options...
Cmd + , in RStudio, then click on Code
and on Edit Snippets...
at the bottom. You will notice that you can also add the same snippets to RMarkdown—check this page for help. Below you can see a simple example.
In the example above, you will notice that a space is needed to enter a snippet if there’s already a character at your cursor. You could certainly include the space in the snippet itself if you prefer to have spaces automatically added with each symbol.
Copyright © 2024 Guilherme Duarte Garcia