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

加入代码格式化 #48

Open
Red-Feng opened this issue Dec 8, 2024 · 6 comments
Open

加入代码格式化 #48

Red-Feng opened this issue Dec 8, 2024 · 6 comments

Comments

@Red-Feng
Copy link

Red-Feng commented Dec 8, 2024

这个功能挺好用的

@guyutongxue
Copy link
Collaborator

如果配置正确的话,按 Alt+Shift+F 即可格式化代码

@Red-Feng
Copy link
Author

image
会显示这个

@Red-Feng
Copy link
Author

如果配置正确的话,按 Alt+Shift+F 即可格式化代码

格式化是用的什么插件?

@Red-Feng
Copy link
Author

我格式化没反应

@Red-Feng
Copy link
Author

是c的格式配置有问题吗?

@guyutongxue
Copy link
Collaborator

  1. 建议卸载除了 C/C++ 和 Console Pauser 以外的 所有 扩展,除非你知道它们是在做什么。尤其是 Code Runner,它会干扰我生成的配置。
  2. 格式化代码的快捷键是 Alt+Shift+F 无疑,请按住 Alt 和 Shift 的同时,按下 F 键。如果不行,在菜单栏“编辑”中也有“格式化文档”的按钮可以使用。

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

2 participants