This VS Code extension allows you to quickly generate a package.xml manifest by analyzing the dependencies of local Salesforce files (Apex, Flow, LWC).
Features
Right-click an Apex Class, Flow XML, or LWC file and select SF Manifest: Generate for File.