K
K
Kirill Gusarev2021-07-31 10:34:47
Refactoring
Kirill Gusarev, 2021-07-31 10:34:47

How to rename a variable in VS Code?

Perivet! I am developing in Lua for OpenComputers (mod for Minecraft), in the VS Code editor. I ran into a problem: the editor does not have the function of renaming a variable in the entire file. That is, only replacement of the occurrence is available , that is, it is completely different, in this case you will have to fiddle with creating a regular expression template so that it correctly finds all mentions of my variable in the code.
Maybe there is some extension that adds renaming? Or is this a problem with the lack of Lua support? Mb need some special extension for Lua?
VS Code 1.58.2
Windows 7 x64

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
GavriKos, 2021-07-31
@kaka888

Install LUA support first. It definitely won't work without it.

V
Vasily Bannikov, 2021-07-31
@vabka

Yes, you need an extension. That's what it's called - Lua

I
Igor Makhov, 2021-07-31
@Igorgro

F2?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question