首页 > 解决方案 > 如何在自身上复制行?

问题描述

在 JetBrains 编辑器中,在没有断线的情况下在自身上复制一行的快捷方式(或技巧)是什么(而不是像Ctrl + D)。换句话说,我想把这个变成:

 constructor(obj: Schema$Car) {
        this.brand =
        this.id =
        this.model =
        this.photoBack =
        this.photoFront =
        this.photoInteriorBack =
        this.photoInteriorFront =
        this.photoSide =
        this.seatCount =
        this.year =
    }

进入这个:

constructor(obj: Schema$Car) {
    this.brand = obj.brand 
    this.id = obj.id
    this.model = obj.model
    this.photoBack = obj.photoBack
    this.photoFront = obj.photoFront
    this.photoInteriorBack = obj.photoInteriorFront
    this.photoInteriorFront = obj.photoInteriorFront
    this.photoSide = obj.photoSide
    this.seatCount = obj.seatCount
    this.year = obj.year
}

标签: idejetbrains-ide

解决方案


推荐阅读