Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any shortcut for CodeBlocks to format the code?

Is there any shortcut for CodeBlocks to format the code?

I haven't find any tip in google.

I found only "format use AStyle", but it come up with right mouse button only...

like image 306
Twi Avatar asked Oct 09 '14 12:10

Twi


People also ask

What is the shortcut to format code?

In the default configuration for Visual Studio Code, the command can be run using the shortcut Alt+Shift+F. To format a range, in an already opened project, open the document that you want to modify, select the specific range to format, right-click, and select Format Selection.

How do I put shortcuts in CodeBlocks?

From the menu it's under settings->editor->keyboard shortcuts (might need to scroll down). Configure whatever shortcut keys you need on the right-hand side.


1 Answers

probably not by default but you should be able to assign it there:

Settings -> Editor -> Keyboard shortcuts -> Plugins -> Source code formatter (AStyle) 

like image 80
Aleš Koblížek Avatar answered Sep 20 '22 00:09

Aleš Koblížek