代码之家  ›  专栏  ›  技术社区  ›  TSR

如何在自身上复制行?

  •  0
  • TSR  · 技术社区  · 7 年前

    在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
    }
    
    0 回复  |  直到 7 年前
    推荐文章