When I right click on a file in the structure section of texstudio, one of the options is "show in explorer". Is there a way to define a shortcut for this option.
Keyboard shortcuts can be assigned only to Menu entries and to some basic editing functions as shown in the manual.
You can use a script in a personal macro and assign a keyboard shortcut to it.
This script will open the file explorer in the folder of the current file in the editor (uncomment the appropriate line for your operating system):
%SCRIPT // needs TeXstudio v2.11.0 or newer filename = app.getCurrentFileName() workingDirectory = filename.substring(0, filename.lastIndexOf("/")) //system("explorer .", workingDirectory) //for windows - tested //system("xdg-open .", workingDirectory) //for linux - tested //system("open .", workingDirectory) //for mac - untested