Codeblocks setting -> editor -> keyboard shortcuts comment 即注释 uncomment 取消注释 左边在new shortcut处添加适合自己的快捷键即可