Add following section to the vscode settings.json "rust-analyzer.runnables.extraTestBinaryArgs": [ "--nocapture", ] This one will add --nocapture to the and of test command allowing println! works immediately