在workspace中找到robotframework的扩展,再找到variables添加如下几行 "robot.variables": { "test_var":"123",} 运行用例后,terminal中显示 配置成功