Sometimes, if you write "while" or "if" incorrectly and erase it, It's annoying because I have to indent them one by one. There's an automatic indentation in the visual studio Isn't there a function like that in vim?
fun()
{
for(...)
{
for(...)
{
if(...)
{
}
}
}
}
How do I write this code automatically?
c vim code-formatting
gg=G
Try it.
It means that you should proceed with the indentation of the file from beginning to end, and if you open each separately
gg
starts from the top of the file
=
indent,
G
means to run to the end of the file.
578 Understanding How to Configure Google API Key
610 GDB gets version error when attempting to debug with the Presense SDK (IDE)
911 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.