Windows 上的 vscode 终端中的“PS"命令是什么意思? [英] what does `PS` command mean in vscode terminal on windows?

查看:281
本文介绍了Windows 上的 vscode 终端中的“PS"命令是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试重现此帖子.

这是一个经典的java hello world,带有额外的package app;

this is a classic hello world in java, with additional package app;

package app;

public class App {
    public static void main(String[] args) throws Exception {
        System.out.println("Hello Java");
    }
}

当我在这段代码中点击运行"btn 时,vscode 输出这一堆

when I click "run" btn inside this code, vscode output this bunch

Hello Java
PS C:\Lecture_java\Lecture001\Hello> & 'C:\Users\ubuntu\.vscode\extensions\vscjava.vscode-java-debug-0.23.0\scripts\launcher.bat' 'C:\Program Files\Java\jdk-13.0.1\bin\java' '-Dfile.encoding=UTF-8' '-cp' 'C:\Lecture_java\Lecture001\Hello\bin' 'app.App'

第一行是我的java代码的输出.

first line is the output of my java code.

我猜第二行是vscode实际处理java文件的日志.

I guess the second line is the log that how vscode acturally process the java file.

PS 命令是什么意思?

PS 命令只能在 vscode 终端内使用.在 cmd.exe 中运行 PS 命令会出现此错误.

the PS command only work inside vscode terminal. running PS command in cmd.exe gives this error.

'PS' 不被识别为内部或外部命令,可运行的程序或批处理文件.

'PS' is not recognized as an internal or external command, operable program or batch file.

推荐答案

PS 表示这是一个 powershell 提示.

The PS indicates it is a powershell prompt.

Powershell 代码不能在 command.exe 提示符下运行.

Powershell code cannot be run inside a command.exe prompt.

这篇关于Windows 上的 vscode 终端中的“PS"命令是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆