To use, select the number or string literal in the editor, press Ctrl + 1 and select Extract to Constant.
要使用这个重构,请选择编辑器中的数字或字符串文字,然后按下Ctrl + 1并选择Extract to Constant。
A string literal represents a string constant obtained from concatenating a sequence of characters. There are two forms: raw string literals and interpreted string literals.
字符串字面值表示由字符序列构成的字符串常量。有两种格式:原始字符串字面值和解释字符串字面值。
应用推荐