Dynamic naming conventions in a source code editor
AssigneeSAP Aktiengeselleschaft
InventorMichael Gutfleisch
Life of this patent
Estimating the term…
Abstract
A system and method for dynamically appending prefixes to source code is described. User-selectable options for a prefix naming convention are provided to a user. Prefixes are transiently appended to variables based on a user selection. The variables are displayed with their respective prefixes in a code editor. Modifications to the source code are detected. The prefixes are removed from the modified source code and the modified source code is written to a persistent storage.
Claims17
A method, comprising:
- storing source code in a persistent storage, the source code having variables;
- transiently appending, by naming convention component execute by a processor of a computer system, a prefix defined by a user-selected prefix naming convention to each of the variables for display in an editor;
- detecting a modification to the source code;
- parsing the source code to determine a variable type for each variable;
- and
- identifying a prefix pattern for variables in the source code, the prefix pattern corresponding to a prefix naming convention.
A method, comprising:
- storing source code in a persistent storage, the source code having variables;
- transiently appending, by naming convention component execute by a processor of a computer system, a prefix defined by a user-selected prefix naming convention to each of the variables for display in an editor;
- detecting a modification to the source code, the modification according to the user-selected prefix naming convention;
- removing the prefixes from each of the variables in the modified source code;
- and
- writing the modified source code to the persistent storage.
A non-transitory machine accessible storage medium containing instructions that, when executed, cause a machine to:
- store source code in a persistent storage, the source code having variables;
- transiently append a prefix defined by a user-selected prefix naming convention to each of the variables for display in an editor;
- detect a modification to the source code;
- parse the source code to determine a variable type for each variable;
- and
- identify a prefix pattern for variables in the source code, the prefix pattern corresponding to a prefix naming convention.
A non-transitory machine accessible storage medium containing instructions that, when executed, cause a machine to:
- store source code in a persistent storage, the source code having variables;
- transiently append a prefix defined by a user-selected prefix naming convention to each of the variables for display in an editor;
- detect a modification to the source code, the modification according to the user-selected prefix naming convention;
- remove the prefixes from each of the variables in the modified source code;
- and
- write the modified source code to the persistent storage.
A system, comprising:
- a persistent storage to store source code having variables;
- a processor coupled to the persistent storage to execute a naming convention component to transiently append a prefix defined by a user-selected prefix naming convention to each of the variables for display in an editor;
- the editor to detect a modification to the source code;
- a parser to parse the source code and deteiniine a variable type for each variable;
- and
- the naming convention component to identify a prefix pattern for variables in the source code, the prefix pattern corresponding to a prefix naming convention.
A system, comprising:
- a persistent storage to store source code having variables;
- a processor coupled to the persistent storage to execute a naming convention component to transiently append a prefix defined by a user-selected prefix naming convention to each of the variables for display in an editor;
- the naming convention component to detect a modification to the source code, the modification according to the user-selected prefix naming convention;
- the naming convention component remove the prefixes from each of the variables in the modified source code;
- and
- the persistent storage to write the modified source code.
Dependencies are inferred from the claim text.