在C项目的makefile中编写的用于在Eclipse IDE的项目浏览器中同时显示扩展的源代码文件.i和汇编源代码.s的指令是什么?
取决于编译器。对于gcc
,它是-save-temps
您看过this site吗?
Showing or hiding files in the Project Explorer view的说明:
您可以选择在以下其中一项中隐藏系统文件或生成的类文件:导航视图。 (系统文件是只有一个文件的文件扩展名,但没有文件名,例如.classpath。)
On the toolbar for the Project Explorer, click the Menu button Menu button to open the drop-down menu of display options. Select Customize View..,. In the dialog box that opens, select the Filters tab and then select the checkboxes for the types of files that you want to hide.
此外,您可以将显示的文件限制为工作集。
On the toolbar for the Project Explorer, click the Menu button Menu button to open the drop-down menu of display options. Choose Select Working Set... Select an existing working set from the list or create a new one by selecting New...
相关概念
搜索文件
导航菜单中的转到>资源操作可让您快速通过搜索资源名称在工作台中找到资源。
您还可以在工作台中对文件进行更复杂的搜索。对于例如,查找所有以.xml结尾的文件:
On the main toolbar, click the command link Search button Search icon. Type *.xml into the File name patterns field and leave the Containing text field empty. (You can use the pull-down list to select *.xml if it had been previously entered.) Finish entering your search options, for example to scope the search to specified working sets, and click Search. The Search view displays the results of your search. Right-click on any item in the Search view to open a pop-up menu that allows you
要从列表中删除项目,请将搜索结果复制到剪贴板,或重新运行搜索。要打开列出的文件之一,请双击它或从其弹出菜单中选择“转到文件”。
如果关闭“搜索”视图,以后可以通过选择命令链接窗口>显示视图>其他...>常规>搜索。
(用* .i或* .s替换* .xml