Replace with next value (ctrl shift dot) in Visual Studio Code

前端 未结 3 1522
长发绾君心
长发绾君心 2021-01-04 23:24

Does anyone know how \"Replace with next value\" (ctr + shift + dot) works ?

I am unable to get this shortcut to do anything on my vscode.

I tried googling

3条回答
  •  隐瞒了意图╮
    2021-01-05 00:12

    If I press the shortcut after highlighting an integer or float literal (16 or 5.2 for example) it subtracts 1 from it.

    Strangely, Replace with Previous Value adds 1 to the value while Replace with Next Value subtracts 1.

    I don't know if it has any other purpose.

提交回复
热议问题