visual-studio-codedirectorypathconfigure

configure display vs code terminal path directory


I was using the Visual Studio Code as an IDE to code and then I met a problem.

On the terminal, the path, the working directory was displayed too long.

Like this

enter image description here

I want to change the PS C:\Users\LENOVO\Desktop\Github\onboard-something\onboard-java-mysql>

to something shorter like >

How can I do that ?

Thank you guys very much.


Solution

  • Try this function as specified below:

    function prompt( ) {">"}