How can I swap or replace multiple strings in code at the same time?

前端 未结 5 1292
北恋
北恋 2021-01-12 10:32

Given the following code sample:

uint8_t i, in, ni;
i = in = 2; ni = 1;
while (2 == i > ni) in++;

How can I replace i, in, and ni<

5条回答
  •  温柔的废话
    2021-01-12 11:13

    Most easiest way would be to use the replace functionality of gedit.

    In vi,

    %s/old/new/g will replace all occurrences of "old" with "new" through out the file.

提交回复
热议问题