在 SQL 字符串中键入文字换行符
Type literal line feed in SQL string
我正在为 SQL 服务器编辑 *.sql 文件中的 SQL。当我按 Enter 将 SQL 字符串分成两行时:
INSERT INTO foo (bar) VALUES ('This is a line');
-- Cursor here: |
...PhpStorm 将始终关闭字符串并插入连接运算符:
INSERT INTO foo (bar) VALUES ('This is' +
' a line');
是否有仅插入换行符的键盘快捷键?
INSERT INTO foo (bar) VALUES ('This is
a line');
Settings/Preferences
Editor | General | Smart Keys
- 禁用
SQL --> Insert string concatenation on Enter
选项
我正在为 SQL 服务器编辑 *.sql 文件中的 SQL。当我按 Enter 将 SQL 字符串分成两行时:
INSERT INTO foo (bar) VALUES ('This is a line');
-- Cursor here: |
...PhpStorm 将始终关闭字符串并插入连接运算符:
INSERT INTO foo (bar) VALUES ('This is' +
' a line');
是否有仅插入换行符的键盘快捷键?
INSERT INTO foo (bar) VALUES ('This is
a line');
Settings/Preferences
Editor | General | Smart Keys
- 禁用
SQL --> Insert string concatenation on Enter
选项