Keyboard shortcut to change font color in Libreoffice to a specific color
7,706
Muru's suggestion is close, but use Character styles, not Paragraph styles.
- Press F11 and click the icon for
Character styles
. - Right-click
Default Style
and selectNew...
Change the font color to red. In the Organizer, name the font colorRed
, then press OK. - Tools -> Customize, select the
Keyboard
tab. Find Alt+R and select it. -
Under
Categories
, choose Styles / Character. UnderFunction
, selectRed
. Then click theModify
button. The
Default Style
Character Style is already black, so assign it to Alt+B. Then press OK.-
Finally, select words and press Alt+R.
Related videos on Youtube
![web.learner](https://lh6.googleusercontent.com/-RdpUwCfHAZo/AAAAAAAAAAI/AAAAAAAAADk/hDSvGRRhJfA/photo.jpg?sz=256)
Author by
web.learner
Updated on September 18, 2022Comments
-
web.learner almost 2 years
I have to do a fair amount of writing in red and black in the same document. In MS Office I would set a keyboard shortcut to switch between colors so I don't have to take my hands off the keyboard. Something like Alt+R for red and Alt+B for black.
How can I set up something similar in LibreOffice Writer? I've poked around in Tools -> Customize -> Keyboard but I can't figure it out.
-
muru almost 7 yearsOne way I tried just now is to create two custom styles (call them Red and Blue) with appropriate font colours, and then assign shortcuts to them. But it seems the styles work on the entire line, so if you switch in the middle, the entire line's colour changes. Is that acceptable? If not, you might want to try creating macros.
-
web.learner almost 7 years@muru Unfortunately I need to have both colors in the same line, although not the same word. I'm not sure how to work with macros in LO, but I'll poke around.
-
-
WinEunuuchs2Unix almost 7 years+1 for a very nicely formatted answer. When I delve into LO keyboard shortcuts this will also be valuable.
-
mLstudent33 over 4 yearsmy version does not have this menu when I push F11
-
Jim K over 4 yearsIn my current version, the menu option is View -> Styles, or find the Styles and Formatting icon in the sidebar on the right-hand side.
-
lucian about 4 years@JimK can you please update your guide for the latest LO version? after I create the style like you suggest, I cannot find it in the function section when I want to define the shortcut. Cheers
-
Jim K about 4 years@lucian: It still works in 6.4.3.2. Try following the directions again and see if you made a mistake. If that doesn't help, ask a new question with a link to this one.
-
lucian about 4 yearsthank you! you are correct, I did make a mistake! it works with the latest version too!
-
Paul Erlenmeyer over 2 yearsThanks, answer still works.