User forums > Using Code::Blocks
setting auto save file in "Tools" ?
edison:
Thanks a lot.
now this is working:
[[GetEditorManager().SaveActive();]] "$(CODEBLOCKS)\sdk\LLVM\bin\clang-format.exe"
but:
[[GetEditorManager().SaveActive();]] "timeout 1" && "$(CODEBLOCKS)\sdk\LLVM\bin\clang-format.exe"
still return a error status: 1966102423 (0x75305797)
Jenna:
--- Quote from: edison on September 12, 2014, 07:47:36 am ---Thanks a lot.
now this is working:
[[GetEditorManager().SaveActive();]] "$(CODEBLOCKS)\sdk\LLVM\bin\clang-format.exe"
but:
[[GetEditorManager().SaveActive();]] "timeout 1" && "$(CODEBLOCKS)\sdk\LLVM\bin\clang-format.exe"
still return a error status: 1966102423 (0x75305797)
--- End quote ---
Try:
[[GetEditorManager().SaveActive();]] cmd.exe /c "timeout 1" && "$(CODEBLOCKS)\sdk\LLVM\bin\clang-format.exe"
edison:
That does not works here too.
I have not encounter any problems without the "pause stage" before run the clang-format (my files is not very big so far) , so the "[[GetEditorManager().SaveActive();]] "$(CODEBLOCKS)\sdk\LLVM\bin\clang-format.exe"" is ok for me.
I think if possible, it's better to add a "auto save option before call .exe" and a "auto re-load file(which should also allow bypass the "file changed" pop-up window)" in the Tools setting dialog box.
Jenna:
Which windows version do you use ?
edison:
Windows 8.1 x64.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version