【发布时间】:2018-12-10 10:57:03
【问题描述】:
我有一个问题。当我在 IntelliJ IDEA 中工作时,我使用组合 Ctrl + / 来创建单行 cmets。目前,我在 Microsoft Visual Studio 2017 中工作,我只看到一个组合 (Ctrl + K + C),但它会创建多行注释。例如:
(我想得到它)
//InputComponent->BindAxis("MoveForward", this, &ACustomPlayerController::MoveForward);
//InputComponent->BindAxis("MoveRight", this, &ACustomPlayerController::MoveRight);
//InputComponent->BindAxis("Turn", this, &ACustomPlayerController::Turn);
但是当我选择这些行并按“Ctrl + K + C”时,我得到这样的结果:
InputComponent->Bi/*ndAxis("MoveForward", this, &ACustomPlayerController::MoveForward);
InputComponent->BindAxis("MoveRight", this, &ACustomPlayerController::MoveRight);
InputComponent->Bind*/Axis("Turn", this, &ACustomPlayerController::Turn);
MVS 2017 是否有用于创建单行 cmets 的特定组合? 我正在用 C++ 编程。 谢谢!
【问题讨论】:
-
评论选择只有一个命令。所以(除非通过扩展添加)只有一个选项。它的使用方式取决于语言(例如 C# 你得到 line cmets)
-
@Richard 好的!谢谢!
标签: c++ visual-studio comments