Press Ctrl+Shift+P to open the command palette. Search for "Toggle Relative Line Numbers" and press enter. The line numbers in the editor will toggle between absolute and relative.