I went to the folder and did shift + right click.
Then pressed open with terminal.
Then wrote there "code ."
And a new window appeared and it worked for me..