Open uniquejava opened 8 years ago
使用了IDEA自带的keymap, 仅对个别认为不合理的快捷键做了修正:(原则是尽量保持默认设置, 改动越少越好!)
默认的很有用的
.. 待续 ..
我目前用的2016.1.3版本, 有效期到2099
打开类 ⌘+n 打开文件 ⌘+shift+n 关闭tab 改成了⌘+w Extend Selection从先前的⌘+w改成了ctrl+w
打开zen html中的c 修改为在xml中也能使用.
Editor>JavaScript>Spaces>Within: ES6 import/export braces
配置国化化
Thank you very very much, solved by just checking "Transparent native-to-ascii conversion" on File Encoding settings
as you mentioned.
Thanks again!
IDEA 2016.1 (maven + spring mvc + tomcat + debug)
spring-webmvc
, you can use auto completion here(All you need to type are:<dep, dep, spring-webmvc, org, ctrl+option+right, 4.2.6.RELEASE
src/main/webapp
and drag theWEB-INF
into it, lastly delete the generatedweb
.WEB-INF/views/hello.jsp
project structure[cmd+;] > modules > web > web resource directories
to this new location.<context:com
and<mvc:ann
to have it auto completed). (This creating xml file step is optional, you can modify the generated dispatcher-servlet.xml if exists)war exploded
as it is > Click Finishon update action: update classes and resources, on frame deactivation: update resources
debug
button.Now if you change JSP you don't have to restart anything, just refresh the browser and if you change class
Cmd + F10
orRun > Reload Changed Classes
and If you add new methods for a class you may need toCmd + F10 > Redeploy
Note: the default contextConfigLocation for spring mvc is
/WEB-INF/SERVLETNAME-servet.xml
, if you are using this exact name, you don't have to specify it in web.xmlpom.xml
HelloController.java
web.xml
spring-servlet.xml
References:
http://stackoverflow.com/questions/20689658/intellij-idea-how-to-update-resources-on-a-local-server-tomcat
http://stackoverflow.com/questions/24682366/automatic-reloading-of-java-class-resources-in-intellij-idea
https://github.com/marley-spring/Building-an-e-commerce-store-using-java-spring-framework
https://www.mobibrw.com/2016/3494