To use, select the number or stringliteral in the editor, press Ctrl + 1 and select Extract to Constant.
要使用这个重构,请选择编辑器中的数字或字符串文字,然后按下Ctrl + 1并选择Extract to Constant。
2
A stringliteral represents a stringconstant obtained from concatenating a sequence of characters. There are two forms: raw string literals and interpreted string literals.