Skip to content

Indentation 🧨 #6942

@kimadeline

Description

@kimadeline

Moving lines up and down:

  • case 1:
# move the next line to the bottom
move_to_end

class Foo:
   def test(self):
      pass

class Bar:
   pass

Pressing return

  • case 1:
def foo():
   pass

# press return here
def bar():
   pass
  • case 2:
class Foo:
    pass
| # at this line the cursor is where the pipe is
    | # at this line the cursor is where the pipe is

Copy-pasting:

  • case 1:
if 1 == 1:
    print('This line belongs to the if')
newline = 'not part of if' # set the cursor before 'newline' and paste something there
  • case 2:
if 1 == 1:
    print('This line belongs to the if')
newline = 'not part of if' # highlight 'newline' and paste something on it

Metadata

Metadata

Assignees

Labels

area-formattingbugIssue identified by VS Code Team member as probable bugmetaIssue that is tracking an overall projectregressionBug didn't exist in a previous release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions