thanks, that would probably work too, but i also just found out that essentially these two shortcuts already exist, they are simply Shift+* for bold and Shift+_ for italics, for anyone interested in it in the future. just wonder why are they not in the keyboard shortcuts section in Rstudio! thanks anyway