本文介绍了Mac OSX,Adobe Brackets-找不到文件(JS,为Brackets的一部分)来编辑"_staticHtmlFileExts"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉,如果不是这个地方,我不知道我还要问什么地方.

对于Mac OSX El Capitan

我正在尝试编辑属性 _staticHtmlFileExts

曾经在

但是我对文件所做的任何更改都不会保存在系统上,因此不会在Brackets应用程序的连续打开中持续存在.

当我尝试在系统上找到相同文件时,无处可寻...

我已将隐藏文件夹设置为显示(如果存在,它们都将显示),所以我不认为这是问题所在.

我怎么能在 Dev Tools 中查看文件,但不能在系统上查看这些文件?我如何或在哪里可以永久进行更改?

解决方案

在安装了 Brackets.dmg 的版本中,安装了经过缩小的级联源文件( main.js 〜/Application/Brackets.app/Contents/www/)以及源地图,这就是为什么您可以在开发人员工具中看到源的原因,而看不到原始源文件.

请参阅文章如何在Brackets上进行黑客攻击有关要自行修改文件的设置开发环境的说明.

作为参考,步骤如下:

  1. 安装最新的Brackets版本(这将为您提供在步骤6中将使用的本机Shell二进制文件)
  2. 叉括号回购
  3. 克隆存储库的分支: git clone https://github.com/<username>/brackets
  4. 获取子模块: cd括号&&git子模块更新--init
  5. 添加上游"遥控器: git remote添加上游https://github.com/adobe/brackets
  6. 使用 tools/setup_for_hacking.sh"/Applications/Brackets.app"
  7. 运行setup_for_hacking脚本

请注意,如果您只是自己进行修改,则步骤2和3是可选的.如果是这样,您可以直接从主服务器上进行克隆( git clone https://github.com/adobe/brackets ).

Sorry if this isn't the place for this, I don't know where else I'd ask.

For Mac OSX El Capitan

I am trying to edit the property _staticHtmlFileExts

The variable used to be defined in src/file/FileUtils.js, but has since been moved to src/LiveDevelopment/LiveDevelopmentUtils.js.

When I go to Show Developer Tools within Brackets, I can view the sources, and very easily find /LiveDevelopment/ (and the child JS file)...

But any changes I make to the file are not saves on the system, and thus do not persist on successive opens of the Brackets app.

When I try to find the same file on my system, it is nowhere to be found...

I have hidden folders set to display (which they all do, when present), so I do not believe this to be the issue.

How come I can view the files in the Dev Tools, but not on my system? How, or where, can I make the change permanently?

解决方案

The build installed with the Brackets.dmg installed minified, concatenated source file (main.js under ~/Application/Brackets.app/Contents/www/) along with a source map, which is why you can see the sources in developer tools, but you cannot see the original source files.

See the article How to hack on Brackets for instructions on setting up a development environment if you want to modify the files themselves.

For reference, the steps are as follows:

  1. Install the latest Brackets build (this gives you the native shell binaries which you'll use in step 6)
  2. Fork the brackets repo
  3. Clone your fork of the repo: git clone https://github.com/<username>/brackets
  4. Fetch submodules: cd brackets && git submodule update --init
  5. Add an "upstream" remote: git remote add upstream https://github.com/adobe/brackets
  6. Run setup_for_hacking script with tools/setup_for_hacking.sh "/Applications/Brackets.app"

Note that the steps 2 and 3 are optional if you are just making modifications for yourself. If so, you can just clone straight from the master (git clone https://github.com/adobe/brackets).

这篇关于Mac OSX,Adobe Brackets-找不到文件(JS,为Brackets的一部分)来编辑"_staticHtmlFileExts"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 06:19