最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

ide - Android Studio annoying line pasting issue - Stack Overflow

matteradmin5PV0评论

I'm having troubles with Android Studio after switching to a new pc. When I'm trying to paste a whole line at the end of another one, it's inserted on a line above the one, the caret is standing on

For example, in this code:

val foo: Foo = Foo()
val bar: Bar = Bar()

If I place the caret on the val bar: Bar = Bar() line and press Ctrl+C I'm saving the line to clipboard. Then I'm placing the caret at the end of the val foo: Foo = Foo() line and press Ctrl+V and I'm expecting this:

val foo: Foo = Foo()val bar: Bar = Bar()
val bar: Bar = Bar()

But I get this instead:

val bar: Bar = Bar()
val foo: Foo = Foo()
val bar: Bar = Bar()

Please help

I tried searching google for any answers and only found one question with a totally opposite problem: How to paste on separate line in Android Studio?

Post a comment

comment list (0)

  1. No comments so far