天天看点

请问一下向eclipse中粘贴html代码的问题

在向eclipse中粘贴html代码的时候,发现了不能自动在双引号后面加上斜线的问题,但是貌似只有我不行,......  现在我只有猜想是我的eclipse版本不支持...

"<!DOCTYPE html>\r\n"

                + "<html en\">\r\n"

                + "<head>\r\n"

                + "    <meta charset=\"UTF-8\">\r\n"

                + "    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n"

                + "    <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\r\n"

                + "    <title>用户登录</title>\r\n"

                + "</head>\r\n"

                + "<body>\r\n"

                + "    <form action=\""+request.getContextPath()+"/login\" method=\"post\">\r\n"

                + "        <input type=\"text\" name=\"un\" value=\"\" placeholder=\"用户名\">\r\n"

                + "        <input type=\"password\" name=\"pwd\" placeholder=\"密码\">\r\n"

                + "        <button style=\"submit\">登录</button>\r\n"

                + "    </form>\r\n<p style=\"color: red\">" + errorMessage

                + "</p>\r\n" + "</body>\r\n" + "</html>

粘贴之后的代码应该类似于这样..但是我从VSCODE中粘贴进去的代码原封不动..求大佬指点...