adobe-brackets

Why does Brackets (code editor) open a new instance of Chrome when using Live Editor?

寵の児 提交于 2019-12-11 09:07:30
问题 In this new instance of Chrome, all of my accounts are signed out and I have to relog in. In the task bar I can see the original Chrome and I can open them side by side. The old instance of Chrome: All my apps Accounts signed in The new Live Preview instance of Chrome: I dont have any of my apps No accounts signed in Essentially it is as if I am using Chrome for the first time What I am asking is, is it safe to sign into my accounts on this new instance of Chrome? 回答1: The Chrome profile that

How to get PHP working in Brackets?

风格不统一 提交于 2019-12-11 00:58:30
问题 I'm almost finished my first website. All that's left is the contact which I will do with PHP. So far I have been using Brackets for coding HTML5 and CSS. From my research I understand that I need a server to run PHP so I installed XAMPP. I have relocated my project inside the htdocs folder of XAMPP, however when I try to open up my PHP page in Brackets' live preview I get this. 回答1: Found out whats wrong, I had to go to project settings in brackets and adjust the directory to match the

How to use SASS in Brackets text editor

三世轮回 提交于 2019-12-10 11:22:27
问题 I am new user of the Bracket text editor. Can anyone tell me how to integrate SASS extension and how to use it? 回答1: You need to start by reading the samples on the current github project as a beginner reference to making your own: Bracket Sass After that, you should get the idea: in the base root of your folder you need to include a .brackets.json file, dot at the beginning in order to make it invisible to your system. In this file, you will write in your own way (or by following the read me

How to disable JSLint ES6 errors with const and let in Adobe Brackets?

人盡茶涼 提交于 2019-12-05 13:45:58
I have Googled and looked through this site everywhere, but I can only find answers for JSHint instead of JSLint. To get rid of the "use function form of use strict" error I add in /*jslint node: true */ . But to disable errors for using const and let I can't seem to find anything. JSHint has esversion: 6 but this doesn't work on JSLint. Use the Preferences API: var PreferencesManager = brackets.getModule("preferences/PreferencesManager"); prefs = PreferencesManager.getExtensionPrefs("jslint"); prefs.set("options.es6", true); Or set it one of the config files: the brackets.json file of the

Change the default directory for Brackets

北城以北 提交于 2019-12-05 10:23:45
I have tons of files in my home directory ( ~ ), and each time I open Brackets, it tries to load and index all the files there. Eventually, after freezing for a minute, it throws the error: Error Indexing Files: The maximum number of files have been indexed. I can of course switch directories after this freeze, but how do I set the default directory for Brackets to be another directory (not the home directory), thus avoiding this freeze each time Brackets is initiated? peterflynn Brackets should be remembering whichever project you had open last. Your state settings file may be corrupt. Try

How to create a new project in adobe-brackets?

大兔子大兔子 提交于 2019-12-04 16:55:43
问题 I've started using adobe-brackets for editing JavaScript, HTML and CSS. Currently I have the "Getting Started" project open in my side bar. I would like to create a new project , but there is no such "New Project" item in the File menu. I tried clicking on "Project settings", but that just gives me this: How do you get rid of the default "Getting Started" project, and start a fresh new one? 回答1: Let's suppose you want your project to be in this location: /Users/myName/Sites/mySite To create a

how to add file extension in adobe-brackets editor ?

主宰稳场 提交于 2019-12-04 09:08:33
问题 I am using files with .html.eco extension in my web project and I am trying to edit in Adobe Brackets but I can't specify that it should treat this as HTML file, to provide the typical features of editing html file (like color support, grammar, etc.). In fact I noticed that this is possible when changing languages.json file , however I am using the binary version and I didn't build from source. https://github.com/adobe/brackets/blob/master/src/language/languages.json Any help ? 回答1: Update:

How to configure Brackets as git core.editor in Windows

懵懂的女人 提交于 2019-12-03 16:50:07
I'm trying to configure Git to use Adobe's Brackets as the core editor on my Windows 7 laptop. I'm using Git Bash. I have it working on a Mac at school, so I know it's possible (although after saving a file that Git opens in brackets for me to edit, I have to completely exit Brackets for it to register to Git; simply closing the file doesn't work). This is what I have configured on the Mac that works: git config --global core.editor "open -nW -a 'Brackets’" This is what I've tried so far on Windows: git config --global core.editor "'c:/program files (x86)/brackets/brackets.exe' open -n -w"

Writing a custom mode for CodeMirror, for use in Brackets

情到浓时终转凉″ 提交于 2019-12-03 13:37:04
问题 I am trying to write a plugin/extension for Brackets that will handle PowerShell. Well after looking into it, I found that CodeMirror also doesn't have a PowerShell mode, so I need to create it myself. I am having a terrible time because there are hardly any detailed resources online for what I am trying to do. This is my main.js file: define(function (require, exports, module){ "use strict"; //Load Modules var LanguageManager = brackets.getModule("language/LanguageManager"), CodeMirror =

How to ignore specific warnings outputted by the CSSLint extension for Brackets

三世轮回 提交于 2019-12-03 13:19:18
问题 I'm using the CSSLint extension for Brackets. Is there a way to disable specific warnings for things like box-model and @bulletproof-font-face ? The best match I've found for a discussion is here. At the moment I'm hoping to use a preamble in my CSS of the form /*csslint ignore: box-model */ , but that's not working. I do know that this extension is able to work with .csslintrc files. I've attempted to put one in the same directory as where my CSS lives, with csslint ignore: box-model , but