Refactoring in CodeMix
The CodeMix plugin is compatible with Eclipse-based IDEs and tools—like MyEclipse, Spring Tools Suite and JBoss Tools—so you can continue working in the environment you are accustomed to.
Select the source code to extract, press
Ctrl+Shift+P, and then select Refactor to see available refactorings. Source code fragments can be extracted into a new method, or into a new function at various different scopes.
TypeScript language service provides Extract to const refactoring to create a new local variable for the currently selected expression. When working with classes, you can also extract a value to a new property.
Renaming is a common operation related to refactoring source code and CodeMix has a separate Rename Symbol command. To rename a symbol, press
Alt+Shift+R, type the new name, and then press Enter. Usages of the symbol are automatically updated in the current file. For languages with advanced support, like TypeScript, usages of the symbol are also updated across other files. The specific language extension determines the level of support received during renaming of symbols.
Preview of Rename Symbol