sudo apt install texlive-full
sudo apt install texstudio
Options > Configure TexStudio > Click Show Advanced Options
(a) > Go to Adv. Editor > Unclick Auto Complete Parentheses
(b) > Go to Editor > Select Ignore Indentation in Indentation Mode
Macros > Edit Macros
Then, copy the follwoing

%SCRIPT
txt = cursor.selectedText()
editor.write("\\mathbf{"+txt+"}")
cursor.clearSelection()
Using this, you can apply mathbf by Shift + F1.