As programmers, variable naming should be the beginning of our programming, and it is something we must do every day. The importance of variable naming conventions, I believe everyone knows it is very important, good code style, the benefits are:
1. Good readability;
2. It is also clearer and easier to maintain the code;
3. Facilitate handover and communication with the team and others.
For beginners, it is very common for variables to be named too casually or not to know what rules to follow . So, today I recommend one to everyone: the variable naming artifact .
Tool Introduction
This tool helps developers find existing variable names that match keywords by searching the source code of open source projects on online open source platforms Github, Bitbucket, Google Code, Codeplex, Sourceforge, and Fedora Project, thereby helping developers name variables .
Supported languages : Java, C#, PHP, Python, JavaScript, Css, Html, Swift, C, C++ and other mainstream languages.
How to use the tool
1. VS Code extension installation
1.1 Search for Codelf and click Install
1.2 The installation is successful
1.3 Shortcut keys open
Select variables, Chinese comments and other keywords, right mouse button, and select Codelf.
1.4 Configure trusted domains
Every time you open it, VS Code will prompt you to click the Configure trusted domain button and click Accept.
**1.5 Open in browser
**
Automatically opens the default browser and, according to the selected keyword, enumerates a list of variable names.
[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-BsPU6yy0-1669763757396) (https://mmbiz.qpic.cn/sz_mmbiz_png/tJJDa2wmJiarVicYdSQaUxE8nX1LYW3GroxLUZ51d0LNibic1dKbOUKfNQ 8bT3GXokVSiaxHQVpo8ZN9VxH7l0KCOVw/640?wx_fmt=png )]
**1.6 Support language filtering
**
C# language naming filter results
PHP language naming filter results
1.7 View code
Move the mouse to the relevant name, and a shortcut menu will pop up: view code, copy, project, search.
code example
1.8 Support development tools
Development tools supported by plugins: Atom, Sublime Text, VS Code.
2. Use the online web version
It can also be opened directly in the browser, search and use
[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-mBaclFhE-1669763757401) (https://mmbiz.qpic.cn/sz_mmbiz_png/tJJDa2wmJiarVicYdSQaUxE8nX1LYW3Gro65Df7mdOb6tudXPuobfTUTvyEpr B96JHJefeibIalGyM0WQamf6ibaqQ/640?wx_fmt=png )]
project address
Open source project address:
https://github.com/unbug/codelf
Web version address:
https://unbug.github.io/codelf/
- End -
Share a set of **.NetCore video tutorials from entry to proficiency**
How to receive: Click on the official account card below to follow me
Reply to "888" and receive it for free
recommended reading
-
Can a C# program be released using AOT to avoid being decompiled?
-
Inventory of 5 C# practical third-party libraries for Word, PPT, Excel, and Mail
-
Inventory of 6 open source projects with separated front and back ends of .NetCore+Vue
-
Recommend an open source system for data visualization large-screen reports