idea的LocalHistory使用方法

前言

笔者项目中不注意关掉了IDEA,所以导致ctrl+z无法撤销(idea关闭自动保存的及机制),于是在网上找了Localhistory这种方法,说的都不清楚,学习了一下,把它记录下来

上图

1.右击项目,找到途中的,在点击ShowHistory

**2.**看图执行步骤
在这里插入图片描述
在这里插入图片描述
图中第159行双箭头就是之前代码改的地方,左边是项目中之前记录的,右边是现在的,点击箭头可以回退之前的项目

总结

当找不到错误,不知道改了哪些代码的时候可以使用这种方式

  • 5
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Ruby is the fastest growing and most exciting dynamic language out there. If you need to get working programs delivered fast, you should add Ruby to your toolbox. This book is the only complete reference for both Ruby 1.9 and Ruby 2.0, the very latest version of Ruby. 2013 marks the 20th anniversary of the Ruby language. We’re proud that throughout its history, we’ve continued to cover the latest version of Ruby. Would you like to go from first idea to working code much, much faster? Do you currently spend more time satisfying the compiler instead of your clients or end users? Are you frustrated with demanding languages that seem to get in your way, instead of getting the work done? Are you using Rails, and want to dig deeper into the underlying Ruby language? If so, then we’ve got a language and book for you! Ruby is a fully object-oriented language, much like the classic object-oriented language, Smalltalk. Like Smalltalk, it is dynamically typed (as opposed to Java or C++), but unlike Smalltalk, Ruby features the same conveniences found in modern scripting languages such as Perl and Python. The combination of the power of a pure object-oriented language with the convenience of a scripting language makes Ruby a favorite tool of intelligent, forward-thinking programmers. The Pickaxe contains four major sections: An acclaimed tutorial on using Ruby. The definitive reference to the language. Complete documentation of all built-in classes, modules, and methods. Complete descriptions of all 97 standard libraries. This is the reference manual for Ruby, including a description of all the standard library modules, a complete reference to all built-in classes and modules (including all the new and changed methods introduced by Ruby 1.9, 1.9.2, 1.9.3, and 2.0). It also includes all the new and changed syntax and semantics introduced since Ruby 1.8. Learn about the new parameter passing rules, local variable scoping in blocks, fibers, and the new block declaration syntax, among other exciting new features. About Ruby 2.0 Ruby 2.0 is a minor update to Ruby 1.9, unlike the more major updates from Ruby 1.8 to Ruby 1.9. The major language changes in Ruby 2.0 are the addition of keyword arguments and the change to use UTF-8 as the default source file encoding. There are a number of additions to the standard library, including: @Enumerator::Lazy@, which adds support for lazy access to potentially infinite lists. Refinements allow you to encapsulate changes to third-party classes, and scope their application to individual source files, preventing your changes from polluting the global application. You’ll also find that Ruby 2 is faster, and has memory management improvements that make it more server-friendly. All told, there are over 110 sections of the book that have been flagged and cross-linked to indicate 2.0 content. What You Need This book assumes you have a basic understanding of object-oriented programming. In general, Ruby programmers tend to favor the the command line for running their code, and they tend to use text editors rather than IDEs. * Ruby runs on Windows, Linux, and Macs.
涵盖安装、配置、常见问题&技巧、Maven、Git、Tomcat、快捷键、项目配置等. 入门..................................................................................................................................................... 5 安装步骤..................................................................................................................................... 5 目录说明..................................................................................................................................... 8 启动配置..................................................................................................................................... 9 配置空间...........................................................................................................................10 首次启动...........................................................................................................................11 首次配置...................................................................................................................................15 Appearance&Behavier(外观和行为).......................................................................... 16 KeyMap..............................................................................................................................20 Editor(编辑器)............................................................................................................. 20 Plugins(插件)............................................................................................................... 47 Version Control(版本控制)..........................................................................................47 Build Execution Deployment(构建执行部署)............................................................ 48 Languages&Frameworks...................................................................................................52 Tools...................................................................................................................................52 第一次启动后...........................................................................................................................53 调出面板和按钮组...........................................................................................................54 面板说明...........................................................................................................................54 项目配置........................................................................................................................................... 55 Project(项目)....................................................................................................................... 55 Modules(模块).....................................................................................................................55 Libraries(类库).....................................................................................................................56 Facets(特征).........................................................................................................................57 ArtiFacts(打包).....................................................................................................................58 SDK(系统开发工具)............................................................................................................ 58 Global libraries(全局类库).................................................................................................. 59 Problems(问题)....................................................................................................................60 Maven 专题.......................................................................................................................................60 配置........................................................................................................................................... 61 主配置...............................................................................................................................61 Import 配置.......................................................................................................................61 Ignore Files 配置............................................................................................................... 62 Runner 配置......................................................................................................................63 RunnerTest.........................................................................................................................63 Repositories 配置..............................................................................................................64 使用入门...................................................................................................................................65 面板说明...........................................................................................................................65 命令模式...........................................................................................................................68 Tomcat 专题...................................................................................................................................... 70 安装配置...................................................................................................................................70 启动........................................................................................................................................... 73 面板说明...................................................................................................................................73 idea-教程 作者 Ricky 交流群:244930845 Run with coverage.....................................................................................................................75 Tomcat 集成原理...................................................................................................................... 76 Conf(配置)................................................................................................................... 77 Logs....................................................................................................................................78 Work.................................................................................................................................. 78 GIT 专题.............................................................................................................................................79 安装........................................................................................................................................... 79 使用........................................................................................................................................... 79 拉取项目...........................................................................................................................80 更新项目...........................................................................................................................81 提交项目...........................................................................................................................81 面板说明...................................................................................................................................82 Local Changes....................................................................................................................82 Shelf 面板..........................................................................................................................83 Log 面板............................................................................................................................ 83 Console 面板.....................................................................................................................83 History 面板...................................................................................................................... 84 项目 git 面板.....................................................................................................................84 仓库选项...........................................................................................................................84 SVN 专题........................................................................................................................................... 85 配置........................................................................................................................................... 85 1.1 下载&安装 svn........................................................................................................... 85 1.2 配置.............................................................................................................................85 检出项目...................................................................................................................................86 面板说明...................................................................................................................................92 工具栏面板.......................................................................................................................92 VersionControl(版本控制).......................................................................................... 92 常用操作...................................................................................................................................95 加入版本控制...................................................................................................................95 提交远程...........................................................................................................................96 更新项目...........................................................................................................................98 冲突解决...........................................................................................................................99 SSM 搭建.........................................................................................................................................100 Maven 项目.............................................................................................................................101 Jar 包....................................................................................................................................... 105 添加 Spring 支持............................................................................................................ 106 数据库和 mybatis...........................................................................................................107 其他 jar............................................................................................................................108 配置文件.................................................................................................................................109 Web.xml.......................................................................................................................... 109 Spring-service.xml...........................................................................................................110 Spring-mvc.xml................................................................................................................112 项目目录结构.........................................................................................................................113 说明.........................................................................................................................................114 Demo 地址:.......................................................................................................................... 114 常用技巧&问题.............................................................................................................................. 114 创建自定义快捷列表.............................................................................................................114 Tomcat 部署失败....................................................................................................................115 情况 1..............................................................................................................................115 热部署注意事项.....................................................................................................................116 修改 JAVA 编译版本...............................................................................................................116 UTF8BOM 格式转 utf8........................................................................................................... 117 插件安装(本地)...................................................................................................................... 118 JSP 实时编译问题...................................................................................................................119 搜索功能失效.........................................................................................................................120 自动导入依赖.........................................................................................................................120 提示不区分大小写.................................................................................................................120 剪贴板数量设置.....................................................................................................................121 生成 JAVADOC.........................................................................................................................121 设置 Spring 支持.....................................................................................................................123 启动时不自动打开项目.........................................................................................................123 取消注释检查.........................................................................................................................124 全屏设置.................................................................................................................................124 本地历史.................................................................................................................................125 搜索.........................................................................................................................................125 所有文件.........................................................................................................................125 项目文件.........................................................................................................................126 取消重复代码提示.................................................................................................................126 设置字符集.............................................................................................................................127 项目字符集.....................................................................................................................127 单个文件.........................................................................................................................128 Idea 优化配置.........................................................................................................................128 启动参数优化.................................................................................................................129 插件优化.........................................................................................................................130 运行优化.........................................................................................................................130 Git 证书失效........................................................................................................................... 130 取消更新.................................................................................................................................131 快捷键............................................................................................................................................. 131 Ctrl........................................................................................................................................... 131 Alt............................................................................................................................................ 133 Shift..........................................................................................................................................133 Ctrl + Alt...................................................................................................................................134 Ctrl + Shift................................................................................................................................134 Alt + Shift................................................................................................................................. 136 Ctrl + Shift + Alt....................................................................................................................... 136 其他.........................................................................................................................................136
入门..................................................................................................................................................... 5 安装步骤..................................................................................................................................... 5 目录说明..................................................................................................................................... 8 启动配置..................................................................................................................................... 9 配置空间...........................................................................................................................10 首次启动...........................................................................................................................11 首次配置...................................................................................................................................15 Appearance&Behavier;(外观和行为).......................................................................... 16 KeyMap..............................................................................................................................20 Editor(编辑器)............................................................................................................. 20 Plugins(插件)............................................................................................................... 47 Version Control(版本控制)..........................................................................................47 Build Execution Deployment(构建执行部署)............................................................ 48 Languages&Frameworks;...................................................................................................52 Tools...................................................................................................................................52 第一次启动后...........................................................................................................................53 调出面板和按钮组...........................................................................................................54 面板说明...........................................................................................................................54 项目配置........................................................................................................................................... 55 Project(项目)....................................................................................................................... 55 Modules(模块).....................................................................................................................55 Libraries(类库).....................................................................................................................56 Facets(特征).........................................................................................................................57 ArtiFacts(打包).....................................................................................................................58 SDK(系统开发工具)............................................................................................................ 58 Global libraries(全局类库).................................................................................................. 59 Problems(问题)....................................................................................................................60 Maven 专题.......................................................................................................................................60 配置........................................................................................................................................... 61 主配置...............................................................................................................................61 Import 配置.......................................................................................................................61 Ignore Files 配置............................................................................................................... 62 Runner 配置......................................................................................................................63 RunnerTest.........................................................................................................................63 Repositories 配置..............................................................................................................64 使用入门...................................................................................................................................65 面板说明...........................................................................................................................65 命令模式...........................................................................................................................68 Tomcat 专题...................................................................................................................................... 70 安装配置...................................................................................................................................70 启动........................................................................................................................................... 73 面板说明...................................................................................................................................73idea-教程 作者 Ricky 交流群:244930845 Run with coverage.....................................................................................................................75 Tomcat 集成原理...................................................................................................................... 76 Conf(配置)................................................................................................................... 77 Logs....................................................................................................................................78 Work.................................................................................................................................. 78 GIT 专题.............................................................................................................................................79 安装........................................................................................................................................... 79 使用........................................................................................................................................... 79 拉取项目...........................................................................................................................80 更新项目...........................................................................................................................81 提交项目...........................................................................................................................81 面板说明...................................................................................................................................82 Local Changes....................................................................................................................82 Shelf 面板..........................................................................................................................83 Log 面板............................................................................................................................ 83 Console 面板.....................................................................................................................83 History 面板...................................................................................................................... 84 项目 git 面板.....................................................................................................................84 仓库选项...........................................................................................................................84 SVN 专题........................................................................................................................................... 85 配置........................................................................................................................................... 85 1.1 下载&安装 svn........................................................................................................... 85 1.2 配置.............................................................................................................................85 检出项目...................................................................................................................................86 面板说明...................................................................................................................................92 工具栏面板.......................................................................................................................92 VersionControl(版本控制).......................................................................................... 92 常用操作...................................................................................................................................95 加入版本控制...................................................................................................................95 提交远程...........................................................................................................................96 更新项目...........................................................................................................................98 冲突解决...........................................................................................................................99 SSM 搭建.........................................................................................................................................100 Maven 项目.............................................................................................................................101 Jar 包....................................................................................................................................... 105 添加 Spring 支持............................................................................................................ 106 数据库和 mybatis...........................................................................................................107 其他 jar............................................................................................................................108 配置文件.................................................................................................................................109 Web.xml.......................................................................................................................... 109 Spring-service.xml...........................................................................................................110 Spring-mvc.xml................................................................................................................112 项目目录结构.........................................................................................................................113 说明.........................................................................................................................................114idea-教程 作者 Ricky 交流群:244930845 Demo 地址:.......................................................................................................................... 114 常用技巧&问题.............................................................................................................................. 114 创建自定义快捷列表.............................................................................................................114 Tomcat 部署失败....................................................................................................................115 情况 1..............................................................................................................................115 热部署注意事项.....................................................................................................................116 修改 JAVA 编译版本...............................................................................................................116 UTF8BOM 格式转 utf8........................................................................................................... 117 插件安装(本地)...................................................................................................................... 118 JSP 实时编译问题...................................................................................................................119 搜索功能失效.........................................................................................................................120 自动导入依赖.........................................................................................................................120 提示不区分大小写.................................................................................................................120 剪贴板数量设置.....................................................................................................................121 生成 JAVADOC.........................................................................................................................121 设置 Spring 支持.....................................................................................................................123 启动时不自动打开项目.........................................................................................................123 取消注释检查.........................................................................................................................124 全屏设置.................................................................................................................................124 本地历史.................................................................................................................................125 搜索.........................................................................................................................................125 所有文件.........................................................................................................................125 项目文件.........................................................................................................................126 取消重复代码提示.................................................................................................................126 设置字符集.............................................................................................................................127 项目字符集.....................................................................................................................127 单个文件.........................................................................................................................128 Idea 优化配置.........................................................................................................................128 启动参数优化.................................................................................................................129 插件优化.........................................................................................................................130 运行优化.........................................................................................................................130 Git 证书失效........................................................................................................................... 130 取消更新.................................................................................................................................131 快捷键............................................................................................................................................. 131 Ctrl........................................................................................................................................... 131 Alt............................................................................................................................................ 133 Shift..........................................................................................................................................133 Ctrl + Alt...................................................................................................................................134 Ctrl + Shift................................................................................................................................134 Alt + Shift................................................................................................................................. 136 Ctrl + Shift + Alt....................................................................................................................... 136 其他.........................................................................................................................................136

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值