Sorry that I had previously posted an incorrect response here before, so I wanted to edit it:
Assuming the line doesn’t spill over to the next and that your cursor is at the absolute beginning of the line, in Windows, press ctrl+shift+down arrow, then shift+left arrow (to deselect extra space) . It can be helpful to set up macro of these key presses.