Eclipse从根目录显示自述文件 [英] eclipse show README from root

查看:172
本文介绍了Eclipse从根目录显示自述文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

具有以下项目结构并不罕见:




  • projectA-目录

  • projectB-目录

  • projectX-目录

  • CHANGELOG-文件

  • 许可-文件

  • 自述文件-文件



此结构(自述文件位于根目录中)得到了很好的支持不同的在线Git解决方案(例如github.com,bitbucket.org)。



我们如何使Eclipse从存储库的根目录导入CHANGELOG,LICENSE,README文件并将其显示在Project Explored / Navigator中?



(问了类似的问题配置github以使用其他文件作为README ,但是它的目标是使在线工具从子目录中呈现README。自述文件,...)

解决方案

对于 README.md


  1. 右-单击一个项目,然后在 New File 对话框中选择 New> File




    1. 单击 高级>>

    2. 选中 链接到文件系统中的文件

    3. 输入 PARENT-1-PROJECT_LOC / README.md

    4. 点击 完成


请注意,这些文件显示在 Git存储库 视图的 工作树 节点。无需使用上述技巧,只需通过 Git存储库打开这些文件,然后像往常一样编辑,保存和提交即可。


It's not uncommon to have the following structure of projects:

  • projectA - directory
  • projectB - directory
  • projectX - directory
  • CHANGELOG - file
  • LICENSE - file
  • README - file

This structure (the fact that README is located in the root directory) is supported well by different online Git solutions (like github.com, bitbucket.org).

How can we make Eclipse import CHANGELOG, LICENSE, README files from the root of repository and show them in Project Explored/Navigator?

(a similar question was asked Configure github to use some other file as README but its goal was to make online tool render a README from subdirectory. I'm insterested in the opposite: Eclipse showing the README, ...)

解决方案

For README.md:

  1. Right-click a project and choose New > File
  2. In the New File dialog:

    1. Click Advanced >>
    2. Check Link to file in the file system
    3. Enter PARENT-1-PROJECT_LOC/README.md
    4. Click Finish

Note, these files are shown in the Git Repositories view below the Working Tree node. Instead of using the trick described above, just open these files via the Git Repositories and then edit, save and commit them as usual.

这篇关于Eclipse从根目录显示自述文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆