Skip to content
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

Formatter does not seem to work in jupyter notebooks #148

Open
creme332 opened this issue Apr 5, 2023 · 0 comments
Open

Formatter does not seem to work in jupyter notebooks #148

creme332 opened this issue Apr 5, 2023 · 0 comments

Comments

@creme332
Copy link

creme332 commented Apr 5, 2023

For C++ notebooks with the .ipynb extension, there's no option for Format Document With: in the command palette. Pressing SHIFT + ALT + F in a cell gives an error message There is no formatter for 'cpp' files installed.. However the formatter is working fine for files with the .cpp extension.

My settings.json file is as follows:

{
    "editor.codeActionsOnSave": {
        "source.fixAll": true
     },
     "editor.formatOnSave": true,
     "clang-format.executable": "/usr/bin/clang-format-10",
     "clang-format.style": "google",
     "clang-format.language.c.enable": true,
     "[c]": {
        "editor.defaultFormatter": "xaver.clang-format",
        "editor.wordBasedSuggestions": false,
        "editor.suggest.insertMode": "replace",
        "editor.semanticHighlighting.enabled": true
     }
}

How can I use the clang-formatter for c++ jupyter notebooks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant