문제

if I hit Ctrl-D KDevelop will comment out the line where my cursor sits, which is all good. What's not so good is the C++ style comments it chooses // I want it to use /**/. Is there a way to make KDevelop use C style comments?

The reasons I ask are: 1) Our code guide line requires /**/ 2) We import a lot of code and tweak it, we would have to mix // /**/, which is ugly. Since most C code out there use /**/ that's a complete hassle. Emacs handles it nicely, and that's one of few hurdles blocking my switch to KDevelop.

Thanks!

도움이 되었습니까?

해결책

Set the mode of the source to ANSI C89 either manually Editor->Tools->Mode->Sources->ANSI C89 or using a kate modeline /* kate: syntax ANSI C89; */

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top