Two hard things in computer science: cache invalidation and naming. And the most deadly thing for programmers is: naming
1. Introduction to CodeIf
Codelf helps developers find existing variable names that match keywords by searching the project source codes of online open source platforms Github, Bitbucket, Google Code, Codeplex, Sourceforge, and Fedora Project. This search service supports direct search in Chinese. codeif supports Chinese query, input Chinese meaning, codeif can query the results that meet the needs as much as possible according to the needs, and display the code fragments and code bases that support various programming languages related to the query results.
It supports multiple programming languages at the same time, basically popular languages, such as C language, python, java are all supported. If you don't want to open the website first and then search, you can install plugins in your code editor, support vscode, sublime, atom, etc.
Link: CODELF
related instructions and plug-ins: https://github.com/unbug/codelf
2. Function introduction
1. Set the language
2. Enter keywords (support Chinese), provide translation results, and matching variable names; you can copy variable names, or browse corresponding codes
3. Plug-in installation
1、VS Code 的 Codelf
Install:
Codelf is on the VS Code extension marketplace. Just search for "codelf" in the VS Code EXTENSIONS pane and click install.
usage:
- Select the text, right-click and select "Codelf".
2、Codelf for Atom
Install:
Codelf is on the Atom package . Search for "codelf" in the Atom settings panel and click Install. See Atom Packages in the Atom Flight Manual
usage:
- Select the text, right click and click Codelf.
- Open the package menu and select "Codelf"
- Press CTRL+ALT+E to open Codelf
rcode variable artifact
Another Rcode variable name website: rcode variable name artifact, making the code more standardized
This website specification follows the Alibaba code specification, but the programming language can be set, and it cannot be installed as a plug-in. Compared with CODEIF, this website can automatically generate case names for variable names, method names, and class names.