An integrated development environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of at least a source code editor, build automation tools, and a debugger…, see the Wikipedia webpage.
I started this series of tutorials related to IDEs called Visual Studio and Visual Code.
The tutorials are tested on the Windows 10 and Fedora 33 operating systems.
Details will be specified in the tutorials on how they work.
Many of the examples can be tested on both IDEs.
Today I will show you some examples related to Visual Code installed on Fedora 33.
The install of the Visual Code is simple on Fedora 33, use the tutorial from the official webpage.
This IDE can be used simply or you can add extensions.
Install and open the editor.
You can add an extension by pressing the keys Ctrl+Shift+X and type the extension name in the new edit box shown.
You can use the keys Ctrl+H to find and replace text.
If you cant to use regular expressions then use Ctrl+H keys and select use regular expression or use keys Alt+R
I used this text to show you how can add text to the same row:
This is a test !
Change number: 0.76767676
Change spaces: to _
Add a new row:
You can see in the next image the areas used in this tutorial: the extensions area with the edit box (1) and the dialog for replacing (2 and 3) set on Use Regular Expression (Alt +R) – use the mouse to see the tooltip for each button.
I used Alt+R keys to change to regular expressions and the \r?$ regular expression in the first edit box from the replacing edit dialog to find the match string to the end of a line.
n the second edit box, I add this text to edit box:
. Next on the same row.
When I press the button Replace all or Ctrl+Alt+Enter keys the text is changed into this:
This is a test ! Next on the same row.
Change number: 0.76767676 Next on the same row.
Change spaces: to _Next on the same row.
Add a new row: Next on the same row.
Next on the same row.
I can use Ctr+Z and Ctr+Y to change the document, reverting it to an older state, or to reverse your last action.
Let’s see more examples with regular expressions:
- use \s*[&!] and ! to replace the space and exclamation point from the first row with the exclamation point;
- use \n and # to remove the line break and add # char on each cut sentence;
- use [+-]?([0-9]*[.])?[0-9]+ and var_nr to replace any signed float number with the text var_nr;