Is there any shortcut for it?
I tried Control + Shift + Touch ID, which didn't work.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
In System Preferences -> Keyboard settings, click 'Customise Touch Bar'. There is a shortcut 'Screen Lock' which you can use to lock the display, as well as 'Sleep' and 'Screen Saver' shortcuts which have their own respective functions.
If you need to turn off the display, without actually sending the computer to sleep, simply turn the brightness down to the minimum.
On an MacBook Pro (Touch Bar) leave brightness at lowest (with slider as left as it can go)
If you're comfortable with the terminal, try
$ caffeinate -dimsu -p <process-id> for leaving a long process running without sleeping computer, where
<process-id> is the PID for the process (you can look this up in Activity Monitor)