vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Formatting document problems

Open felix-0701 opened this issue 3 years ago • 1 comments

Environment

  • OS and Version:WIN10
  • VS Code Version:1.69.2(user setup)
  • C/C++ Extension Version:v1.11.4
  • Other extensions you installed (and if the issue persists after disabling them):
  • If using SSH remote, specify OS of remote machine:
  • A clear and concise description of what the bug is, including information about the workspace (i.e. is the workspace a single project or multiple projects, size of the project, etc).

Bug Summary and Steps to Reproduce

Bug Summary: Formatting document problems Steps to reproduce: 1.#define uint8 UINT8 2.typedef struct tst { UINT8 (*tst_vscode)(void); }TST_T; 3.shift+Alt+F or ctrl+K ctrl+f 4.typedef struct tst { UINT8 (*tst_vscode) (void); } TST_T;

Expected behavior

1.#define uint8 UINT8 2.typedef struct tst { UINT8 (*tst_vscode)(void); }TST_T; 3.shift+Alt+F or ctrl+K ctrl+f 4.typedef struct tst { UINT8 (*tst_vscode)(void); } TST_T;

Code sample and Logs

1.#define uint8 UINT8
2.typedef struct tst
{
UINT8 (*tst_vscode)(void);
}TST_T;
3.shift+Alt+F or ctrl+K ctrl+f
4.typedef struct tst
{
UINT8 (*tst_vscode)(void);
} TST_T;

Screenshots

123

Additional context

No response

felix-0701 avatar Aug 04 '22 15:08 felix-0701

I don't understand what the bug is. Can you explain more? The behavior I'm seeing is that is it formatting as expected for both vcFormant and clangFormat formatters.

Can you more clearly provide what the repro code is? I don't understand what the numbered 1 to 4 list is supposed to represent. What formatting mode you're using? And what is wrong with the result?

sean-mcmanus avatar Aug 04 '22 22:08 sean-mcmanus

This issue has been closed because it needs more information and has not had recent activity.

github-actions[bot] avatar Oct 04 '22 11:10 github-actions[bot]