2

I'm just starting to play with Typescript, using a course on Udemy.

I created a simple index.ts file, compiled it in a terminal, but the generated index.js file is not showing up in the VSCode Explorer. (Even though I've hit the refresh button, and even restarted VSCode.)

Any idea what I'm doing wrong? enter image description here

3
  • can you share the screen shot? Commented Jun 13, 2019 at 3:42
  • 2
    Have you configured files.exclude in your VS Code user settings? Commented Jun 13, 2019 at 4:46
  • 1
    Bingo @MattBierner. Thank you. Did you want to put in the form of an answer, and I can accept it? Commented Jun 13, 2019 at 4:50

1 Answer 1

2

Try checking your files.exclude setting in VS Code. This setting allows you to hide files in the VS Code explorer using glob patterns. Look for a pattern such as "*.js": true. Many TypeScript tutorials for VS Code will recommend configuring this setting so that your compiled JS file don't clutter up the VS Code explorer or show up in quick open / search results

You can configure files.exclude both as a user setting or as a workspace setting, so be sure to check in both locations. See here for more info about managing settings.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.