VS keymapping ctrl+enter issue.

I set the keymapping to visual studio mapping, and ctrl+enter is currently adding a new line to the line above the current caret position. And here is some small problem.

//UC_Util::Print(BulletProjectileMovement->Velocity.Size());
float TravelDistance = (GetActorLocation() - FireLocation).Size();

When the caret position is at the bottom line in above code, and when I press the ctrl+enter, it turns out to be like below code.

/
/UC_Util::Print(BulletProjectileMovement->Velocity.Size()); 
float TravelDistance = (GetActorLocation() - FireLocation).Size();

but I want it to be like this.

//UC_Util::Print(BulletProjectileMovement->Velocity.Size()); 
(New line & new caret position here.)
float TravelDistance = (GetActorLocation() - FireLocation).Size();

I assume that some additional key mapped to ctrl+enter function causing this issue.

0
1 comment

“Start New Line” is the action you need. It will insert a newline next to the current in the editor. 

The default shortcut is Shift + Enter in Visual Studio keymap, you can search shortcuts and custom the actions in Settings | Keymap.

0

Please sign in to leave a comment.