The default screen size of VB is 800*600 . After installing Addtions , it will become 1024*768 , and then it is still too small. 24 -inch monitors are all 1920*1200 , which cannot be used when writing code in full screen.
Need to add monitor information to /etc/X11/xorg.conf
vi /etc/X11/xorg.conf
The content is as follows
Section "Device"
BoardName "VirtualBox Graphics"
Driver "vboxvideo"
Identifier "Device[0]"
VendorName "Oracle Corporation"
EndSection
Section "Screen"
SubSection "Display"
Depth 24
Modes "800x600""1440x900"
EndSubSection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
EndSection
This line of Modes "800x600""1440x900" , you can't just write one, you have to have two to be valid, and then restart, you can click Display in the system's preferences, and select the screen size, as shown below: