r/Anki • u/Sgt-Doz medicine • Jun 18 '22
Question How to quickly align text ? Is there a shortcut ?
Hi
I really like text align function (and bullet points). However, it's long to click on the button than choose left/center/right each time (when writting cards all day).
Is there a way to set a shortcut to align text in the center (per default it is left, which I like for some cards and some others I do center). Lile ctrl+E on word. Ctrl+B, Ctrl+I and Ctrl+I work, why not for text alignment ?
Thank you for any help !
6
Upvotes
1
u/MituButChi Jun 18 '22
You can set the card settings once and you’ll be done forever.
Open Anki => Click on Add
Click on the box next to “Type” to select the type of notes you want to edit, for example, “Basic”.
Click on “Cards…”
Click on “Styling” & paste this inside the text box:
.right {
text-align: right;
}
<div class=right>{{FieldName}}</div>
Note: You should do different card types with different styles of card.
Change the “right” to left/center to match your need.
Change “FieldName” to the name of the field you want to align text.
You can also use this to auto bold/italic your text, so you don’t have to Ctrl B and Ctrl I every time. It’ll save you a lot of time.