学以致用:让visualstudio爱上sublime
2015-12-29 10:12
363 查看
前言:
经常在vs中工作,但是一些编辑工作却非常喜欢sublime的方式,如果你也是,那我们来当媒婆吧,哈哈.
准备:
Visualstudio一枚
Sublime一枚
版本都随意,我这里以vs2010举例.
开始:
打开工具-->外部工具
点击增加:
其中标题随你,
命令选择你的sublime的位置
参数输入:
$(ItemPath):$(CurLine):$(CurCol)
这个的意思是:
文件名:当前行号:当前列号,这个参数方式对所有工具都有效,我这里列出完整的参数参考.
Usage: subl [arguments] [files] edit the given files
or: subl [arguments] [directories] open the given directories
or: subl [arguments] - edit stdin
Arguments:
--project <project>: Load the given project
--command <command>: Run the given command
-n or --new-window: Open a new window
-a or --add: Add folders to the current window
-w or --wait: Wait for the files to be closed before returning
-b or --background: Don't activate the application
-s or --stay: Keep the application activated after closing the file
-h or --help: Show help (this message) and exit
-v or --version: Show version and exit
--wait is implied if reading from stdin. Use --stay to not switch back
to the terminal when a file is closed (only relevant if waiting for a file).
Filenames may be given a :line or :line:column suffix to open at a specific
location.
这样就可以点击工具-->sublime来启动sublime编辑了,编辑完保存关闭,vs会提示文件有修改,是否加载,点击是即可.
如何能够更加快捷的使用呢,那就设置快捷键吧.
打开工具-->选项
找到Tools.ExternalCommand3,数字3是看你在外部工具列表排的位置
设置一个你要的快捷键,我设置的Ctrl+E,Ctrl+E
确定就好了,这样我们需要编辑就Ctrl+E,Ctrl+E,然后编辑,完成后Ctrl+s,alt+f4即可.
经常在vs中工作,但是一些编辑工作却非常喜欢sublime的方式,如果你也是,那我们来当媒婆吧,哈哈.
准备:
Visualstudio一枚
Sublime一枚
版本都随意,我这里以vs2010举例.
开始:
打开工具-->外部工具
点击增加:
其中标题随你,
命令选择你的sublime的位置
参数输入:
$(ItemPath):$(CurLine):$(CurCol)
这个的意思是:
文件名:当前行号:当前列号,这个参数方式对所有工具都有效,我这里列出完整的参数参考.
Usage: subl [arguments] [files] edit the given files
or: subl [arguments] [directories] open the given directories
or: subl [arguments] - edit stdin
Arguments:
--project <project>: Load the given project
--command <command>: Run the given command
-n or --new-window: Open a new window
-a or --add: Add folders to the current window
-w or --wait: Wait for the files to be closed before returning
-b or --background: Don't activate the application
-s or --stay: Keep the application activated after closing the file
-h or --help: Show help (this message) and exit
-v or --version: Show version and exit
--wait is implied if reading from stdin. Use --stay to not switch back
to the terminal when a file is closed (only relevant if waiting for a file).
Filenames may be given a :line or :line:column suffix to open at a specific
location.
这样就可以点击工具-->sublime来启动sublime编辑了,编辑完保存关闭,vs会提示文件有修改,是否加载,点击是即可.
如何能够更加快捷的使用呢,那就设置快捷键吧.
打开工具-->选项
找到Tools.ExternalCommand3,数字3是看你在外部工具列表排的位置
设置一个你要的快捷键,我设置的Ctrl+E,Ctrl+E
确定就好了,这样我们需要编辑就Ctrl+E,Ctrl+E,然后编辑,完成后Ctrl+s,alt+f4即可.
相关文章推荐
- GCC,GDB,Makefile
- iOS9 语言国际化-坑
- 谈谈一个优秀的程序员是如何炼成的
- Jenkins+ftp 使用过程
- 设计模式--工厂模式
- bat实现检测fluent当前文件夹最新文件
- UIImage裁剪图片指定frame
- WPF dataGrid中的check的改变事件
- [转]weak的生命周期:具体实现方法
- CNN应用之基于R-CNN的物体检测-CVPR 2014-未完待续
- navicat 导入sql文件时报错:1153 :Got a packet bigger than 'max_allowed_packet' bytes
- FreeComand关闭后保存上次标签
- js为什么不能正确处理小数运算?
- java的托盘图标
- Go使用Gob存储数据
- Go语言单元测试
- json问题一
- 学习Android之路
- pcDuino 刷系统-LiveSuit
- Access数据类型与.net OleDbType枚举类型的对应