Code language not supported or defined vs code как исправить

STEPS to follow:

1) Install the "CODE RUNNER" extension in Visual Studio (VS) (if you have not done so, yet).

2) After that, go to VS “Settings” (by clicking the wheel) and, in the search field on the top, enter: “run code“.

3) You’ll see, to the right, all the options available for “Code Runner” settings. Scroll down, and you’ll see a field that says,

Code-runner: Executor Map By File Extension.

Set the executor of each file extension.

4) Click on: “Edit in Settings.json“.

5) Then, scroll down until you see “code-runner.executorMapByFileExtension” field brackets. You’ll be able to see all the files extensions (e.g., “.vb”, “.scala”, etc.) and the corresponding executor application that run such files after the colons, to the right.

6) If you don’t see the extension for the file you’re trying to run (e.g., “.js”), just enter it following the same (json) format as the ones above, with the executor program (that you need to know) that runs it, to the right.

EXAMPLE: in the Mac, for a javascript (JS) file with extension “.js” (assuming you’ve already installed NODE, the JS executor app), you should enter a line at the end (inside the last bracket) such as,

“.js”: “node”

(NOTE: make sure you put a coma (,) at the end of the previous line, right before your addition)

7) SAVE your edit, and run your program by clicking the arrow on the top right corner of Visual Studio window. Your program output will be shown on the OUTPUT tab in the section below.

Все: расширения добавлены, бубны танцованы, яндекс и гугл обысканы.
Код джаваскрипт из рабочей области не запускается. Кнопка “Go live” отсутствует. При нажатии на треугольник справа вверху появляется сообщение: “Code language not supported or defined. Источник: Code Runner (расширение)”.


  • Вопрос задан

    более двух лет назад

  • 3436 просмотров

Пригласить эксперта

В настройках Code Runner, в пункте (Code-runner: Default Language Set the default language to run)
Прописал (javascript), мне помогло.


  • Показать ещё
    Загружается…

23 мая 2023, в 13:52

3000 руб./за проект

23 мая 2023, в 13:35

200000 руб./за проект

23 мая 2023, в 13:30

500 руб./за проект

Минуточку внимания

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Assignees

@isidorn

Labels

*caused-by-extension

Issue identified to be caused by an extension

debug

Debug viewlet, configurations, breakpoints, adapter issues

info-needed

Issue requires more information from poster

Добавить комментарий