GithubHelp home page GithubHelp logo

Comments (7)

sean-mcmanus avatar sean-mcmanus commented on May 27, 2024

@Jinying-Tang That generated doxygen comment appears to be coming from another extension, maybe GitHub Copilot, see https://github.com/community/community/discussions/categories/copilot .

from vscode-cpptools.

Jinying-Tang avatar Jinying-Tang commented on May 27, 2024

@Jinying-Tang That generated doxygen comment appears to be coming from another extension, maybe GitHub Copilot, see https://github.com/community/community/discussions/categories/copilot .

I'm sure it's a problem with c/c++ code formatting, I don't have copilot installed, but I have Doxygen Documentation Generator installed, and if I disable the c/c++ extension, it shows up correctly
bug

from vscode-cpptools.

sean-mcmanus avatar sean-mcmanus commented on May 27, 2024

@Jinying-Tang What formatter settings are being used? If you set C_Cpp.loggingLevel to "Debug" and format -- does the C/C++ logging mention clangFormat or vcFormat. If clangFormat, do you have any clang_format settings set? Does the bug repro if you format document or format on paste with the comment?

from vscode-cpptools.

Jinying-Tang avatar Jinying-Tang commented on May 27, 2024

@Jinying-Tang What formatter settings are being used? If you set C_Cpp.loggingLevel to "Debug" and format -- does the C/C++ logging mention clangFormat or vcFormat. If clangFormat, do you have any clang_format settings set? Does the bug repro if you format document or format on paste?

1、When I enable C/C++ extensions, the @file falls back a space, causing the @author to be out of alignment, and when C/C++ extensions are disabled, the @file is aligned with the @author
2、When I copy the correct formatting content to the beginning of another .c or .h file and save it, @file does not fall back a space

image

from vscode-cpptools.

sean-mcmanus avatar sean-mcmanus commented on May 27, 2024

@Jinying-Tang How do I use Doxygen Documentation Generator to generate the comment? Are there particular settings?

from vscode-cpptools.

Jinying-Tang avatar Jinying-Tang commented on May 27, 2024

@Jinying-Tang How do I use Doxygen Documentation Generator to generate the comment? Are there particular settings?

The Doxygen Documentation Generator does not require any special configuration.

  1. Create a .c or .h file
    2.Type /** at the top of the created file, then press enter, and it will automatically generate a comment

from vscode-cpptools.

starball5 avatar starball5 commented on May 27, 2024

Potentially related on Stack Overflow: How to Fix Casing of Visual Studio Code clang-format Command-Line

from vscode-cpptools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.