In Windows, Home & end is a commonly used key. I usually use the SHIFT + home or SHIFT + end key to select the text from the current cursor to the line header or end of the line. Although the use of double-finger touch, three-finger touch, or even four-finger or above is amazing, there are no home & End keys on its keyboard, it is inconvenient to use. Especially when Windows is used in virtual machines, it is frustrating that the previous operations do not respond. I searched and found a discussion on this issue. It seems that everyone is also troubled by this problem. You need to use the FN key in the lower left corner and the upper left and lower right arrows to operate. Specifically:
HomeIsFN+Leftarrow
EndIsFN+Rightarrow
Page upIsFN+Uparrow
Page downIsFN+Downarrow
The above part is discussed here: http://superuser.com/questions/132719/how-do-i-type-home-end-pageup-pagedown-on-a-macbook-pro
In addition, the preceding keys can be operated with the ctrl key. For example, CTRL + FN + left arrow (to the beginning) and CTRL + FN + right arrow (to the end ).