简体   繁体   English

从git shell打开Atom编辑器

[英]Open Atom editor from git shell

我正在使用带有1.8 GHZ处理器内核i5的Win 8-X64机器,我在这台机器上同时安装了atom编辑器和git bash,是否可以通过任何程序从Git bash shell启动atom文本编辑器,或者反之亦然。

Add atom.exe file location in Your Environmental variables. 在您的环境变量中添加atom.exe文件位置。

Follow These steps: 跟着这些步骤:

step 1. Right click on Your atom icon where you usually open atom editor and click Properties 步骤1.右键单击通常打开原子编辑器的“原子”图标,然后单击“属性”。

step 2. Copy Start in directory 步骤2.在目录中复制“开始”

it looks like this 看起来像这样

start in:  C:\Users\hemant\AppData\Local\atom\app-1.7.0

step 5. Go to Control panel and follow this directory Control Panel\\System and Security\\System 步骤5.转到“控制面板”,并按照此目录Control Panel\\System and Security\\System

step 6. ON left side You will see Advanced System Settings click on it 步骤6.在左侧,您将看到Advanced System Settings(高级系统设置),单击它

step 7. then go to Environment Variables Tab 步骤7,然后转到“ 环境变量”选项卡

step 8. Inside System Variables search Path click on it, then click Edit 第8步。在“内部系统变量”搜索路径中单击它,然后单击“ 编辑”。

step 9. Add ; 步骤9.添加; at the end of all directory and Paste atom directory and click 在所有目录和粘贴原子目录的末尾,然后单击

OK

step 10. Then open atom in your git bash or any console by Typing $ start atom 第10步。然后通过键入$ start atom在git bash或任何控制台中打开$ start atom

OR 要么

simply Type PATH=%PATH%; C:/your atom directory 只需键入PATH=%PATH%; C:/your atom directory PATH=%PATH%; C:/your atom directory in your console and Hit Enter PATH=%PATH%; C:/your atom directory在控制台中,然后按Enter

If you want to associate atom with all git operations, run: git config --global core.editor "atom --wait" 如果要将atom与所有git操作相关联,请运行: git config --global core.editor "atom --wait"

If you just want to edit files, add an alias in git: git config --global alias.edit "! atom" and now you can edit any file by calling: git edit [filename] 如果您只想编辑文件,请在git中添加一个别名: git config --global alias.edit "! atom" ,现在您可以通过调用以下文件来编辑任何文件: git edit [filename]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM