Coder Social home page Coder Social logo

chuyik / brackets-snippets Goto Github PK

View Code? Open in Web Editor NEW
279.0 11.0 55.0 1.17 MB

Imitate Sublime Text's behavior of snippets, and bring it to Brackets.

License: MIT License

JavaScript 69.08% CSS 9.09% HTML 21.74% Makefile 0.08%
brackets-extension brackets snippets plugin

brackets-snippets's Introduction

Imitate snippets feature of Sublime Text, and bring it to Brackets.

Screen demo

brackets-snippets-demo.gif

Gif size ~500kb, please wait until loaded

Features

  1. Insert snippets by pressing Tab key
  2. Select next variables or cursors by pressing Tab key
  3. Edit multiple variables at one time
  4. Fully customize your own snippets in Snippets Manager (See below)
  5. Hang around Snippets Library and find some other awesome snippets! (See below)

Articles And Tutorials

Traditional Chinese 繁体中文

Japanese 日本語

English

Russian русский язык

Korean 한국어

Snippets Manager

snippets-manager.png

Snippets Library

snippets-library.png

The library is currently maintained by myself, you can contribute more snippets by simply creating an issue and submit your snippets, or

  1. Fork this project;
  2. Edit library-hints.yml, then commit changes and push it to your repository;
  3. Perform a pull request.

Installation

Search Brackets Snippets (by edc) in Brackets Extension Manager, and install it.

Failed to download it in Brackets? Try the alternative instructions:

  1. Download .zip package of the latest version
  2. Drag the file into the bottom-left position of Extension Manager
  3. Restart Brackets

Syncing

Please read #48

Todo

  1. Support more triggers like {{ /* (#10)
  2. Insert keystroke (#30)
  3. Support ctrl/cmd-save
  4. Work with emmet
  5. Add Environment Variables support like what Sublime Text provides (Anyone need this?)

Credits

  1. JavaScript & NodeJS Snippets for Sublime Text 2/3
  2. HTML snippets for Sublime Text
  3. CSS snippets for Sublime Text

brackets-snippets's People

Contributors

albertinad avatar chuyik avatar cupoftea696 avatar marlonmleite avatar migliori avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

brackets-snippets's Issues

Allow punctuation

I really like this plugin, but I don't understand, why some punctuation is forbidden. I'd like to use ';trigger', but can't. Is it really necessary to restrict it?

Update button not clickable

I think this may have happened with the last update as well, but for sure the "Update" button in Brackets extension manager is not clickable. It shows up but is faded out. I was able to confirm this on another machine as well.

Not sure if this helps but I think you need to add this to your .json file if you don't have it already:

"engines": { "brackets": ">=1.0.0" },

Tab is no longer working after installing the extension

Hi, thanks for the extension!

I really want to use it for my current project, unfortunately I can't use the 'tab' on the editor after I have it installed. The tab works again by uninstalling it. :(

I have the latest brackets - Release 1.1 build 1.1.0-15558 (release ea908cae5).

Extension name based scope

I think It would be great if we can specify snippets scoping to specific extension names.
Here's a use case, when I do testing, I have a file name testName.spec.js This type of files is where I only want to see snippets for testing, and don't want to show it on .js extensions. Or maybe we can make the scope a regex on what file names to match on.

Two html tags in the same line, returns to the first tag on the variable

Hello.
First of all, I would like to say that I loved your extension and it's helping me a lot.
But this one problem is annoying me like hell.
If I use two equal tags, like anchor tags, in the same line, the cursor gets moved to the first tag instead of the second. If you could check this out I would be really thankful. This will be my favorite brackets extension so far and I will remove Emmet. Thank you a lot for your work. :)

New error, not running. this is the error

Download the React DevTools for a better development experience: http://fb.me/react-devtools
/utils/DeprecationWarning.js:90 Use brackets.getModule("thirdparty/CodeMirror2/lib/codemirror") instead of global CodeMirror.
at Object.defineProperty.get (/brackets.js:121:32)
at Object. (file:///C:/Users/Jonatthu/AppData/Roaming/Brackets/extensions/user/jade/main.js:4:3)
at Object.context.execCb (file:///C:/Program%20Files%20(x86)
/utils/DeprecationWarning.js:90 Use brackets.getModule("thirdparty/CodeMirror2/lib/codemirror") instead of global CodeMirror.
at Object.defineProperty.get (/brackets.js:121:32)
at Object. (file:///C:/Users/Jonatthu/AppData/Roaming/Brackets/extensions/user/jade/main.js:656:5)
at Object.context.execCb (file:///C:/Program%20Files%20(x86)
/utils/DeprecationWarning.js:90 Use brackets.getModule("thirdparty/CodeMirror2/lib/codemirror") instead of global CodeMirror.
at Object.defineProperty.get (/brackets.js:121:32)
at Object. (file:///C:/Users/Jonatthu/AppData/Roaming/Brackets/extensions/user/jade/main.js:656:17)
at Object.context.execCb (file:///C:/Program%20Files%20(x86)
/utils/DeprecationWarning.js:90 Use brackets.getModule("thirdparty/CodeMirror2/lib/codemirror") instead of global CodeMirror.
at Object.defineProperty.get (/brackets.js:121:32)
at file:///C:/Users/Jonatthu/AppData/Roaming/Brackets/extensions/user/jade/main.js:47:18
at Function.CodeMirror.getMode (/thirdparty/CodeMirror2/lib/codemirror.js:4734:19)
at file:///C:/Users/Jonatthu/AppData/Roaming/Brackets/extensions/user/jade/main.js:614:27
at Object. (file:///C:/Users/Jonatthu/AppData/Roaming/Brackets/extensions/user/jade/main.js:656:4)
at Object.context.execCb (file:///C:/Program%20Files%20(x86)
/utils/DeprecationWarning.js:90 Use brackets.getModule("thirdparty/CodeMirror2/lib/codemirror") instead of global CodeMirror.
at Object.defineProperty.get (/brackets.js:121:32)
at file:///C:/Users/Jonatthu/AppData/Roaming/Brackets/extensions/user/jade/main.js:49:5
at Function.CodeMirror.getMode (/thirdparty/CodeMirror2/lib/codemirror.js:4734:19)
at file:///C:/Users/Jonatthu/AppData/Roaming/Brackets/extensions/user/jade/main.js:614:27
at Object. (file:///C:/Users/Jonatthu/AppData/Roaming/Brackets/extensions/user/jade/main.js:656:4)
at Object.context.execCb (file:///C:/Program%20Files%20(x86)
/utils/DeprecationWarning.js:90 Use brackets.getModule("thirdparty/CodeMirror2/lib/codemirror") instead of global CodeMirror.
at Object.defineProperty.get (/brackets.js:121:32)
at file:///C:/Users/Jonatthu/AppData/Roaming/Brackets/extensions/user/garthdb.brackets-stylus/stylus.js:8:1
/utils/DeprecationWarning.js:90 Use brackets.getModule("thirdparty/CodeMirror2/lib/codemirror") instead of global CodeMirror.
at Object.defineProperty.get (/brackets.js:121:32)
at file:///C:/Users/Jonatthu/AppData/Roaming/Brackets/extensions/user/garthdb.brackets-stylus/stylus.js:758:1
/utils/DeprecationWarning.js:90 Use brackets.getModule("thirdparty/CodeMirror2/lib/codemirror") instead of global CodeMirror.
at Object.defineProperty.get (/brackets.js:121:32)
at file:///C:/Users/Jonatthu/AppData/Roaming/Brackets/extensions/user/garthdb.brackets-stylus/stylus.js:759:1
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new jQuery.fn.init (/brackets.js:481:36)
at n (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:405)
at Object.eval (/./ParfaitAPI.js:123:5)
at Object.context.execCb (file:///C:/Program%20Files%20(x86)
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new jQuery.fn.init (/brackets.js:481:36)
at n (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:405)
at Object.eval (/./ParfaitAPI.js:124:5)
at Object.context.execCb (file:///C:/Program%20Files%20(x86)
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new jQuery.fn.init (/brackets.js:481:36)
at n (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:405)
at Object.eval (/./ParfaitAPI.js:125:5)
at Object.context.execCb (file:///C:/Program%20Files%20(x86)
/LiveDevelopment/MultiBrowserImpl/transports/NodeSocketTransport.js:87 NodeSocketTransport - start
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new jQuery.fn.init (/brackets.js:481:36)
at n (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:405)
at file:///C:/Users/Jonatthu/AppData/Roaming/Brackets/extensions/user/jade-snippets/main.js:103:9
at _callHandler (/utils/AppInit.js:93:13)
at Object._dispatchReady (/utils/AppInit.js:113:13)
at Object.eval (/brackets.js:291:33)
at j (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:26911)
at Object.k.add as done
at Object.d.always (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:28096)
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new jQuery.fn.init (/brackets.js:481:36)
at n (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:405)
at Object.registerMainPanel (/./MainPanel.js:285:9)
at _appReadyHandler (/main.js:281:19)
at _callHandler (/utils/AppInit.js:93:13)
at _addListener (/utils/AppInit.js:128:13)
at Object.appReady (/utils/AppInit.js:141:9)
at Object.eval (/main.js:304:17)
at j (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:26911)
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new jQuery.fn.init (/brackets.js:481:36)
at n (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:405)
at Object._initParfaitControlsPopup as initParfaitControlsPopup
at _appReadyHandler (/main.js:282:22)
at _callHandler (/utils/AppInit.js:93:13)
at _addListener (/utils/AppInit.js:128:13)
at Object.appReady (/utils/AppInit.js:141:9)
at Object.eval (/main.js:304:17)
at j (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:26911)
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new jQuery.fn.init (/brackets.js:481:36)
at n (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:405)
at _appReadyHandler (/main.js:285:9)
at _callHandler (/utils/AppInit.js:93:13)
at _addListener (/utils/AppInit.js:128:13)
at Object.appReady (/utils/AppInit.js:141:9)
at Object.eval (/main.js:304:17)
at j (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:26911)
at Object.k.fireWith as resolveWith
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new jQuery.fn.init (/brackets.js:481:36)
at n (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:405)
at _attachExtensionManagerListener (/main.js:118:9)
at _appReadyHandler (/main.js:289:9)
at _callHandler (/utils/AppInit.js:93:13)
at _addListener (/utils/AppInit.js:128:13)
at Object.appReady (/utils/AppInit.js:141:9)
at Object.eval (/main.js:304:17)
at j (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:26911)
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new jQuery.fn.init (/brackets.js:481:36)
at n (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:405)
at _setupAbandonmentEvents (/main.js:234:9)
at _appReadyHandler (/main.js:291:9)
at _callHandler (/utils/AppInit.js:93:13)
at _addListener (/utils/AppInit.js:128:13)
at Object.appReady (/utils/AppInit.js:141:9)
at Object.eval (/main.js:304:17)
at j (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:26911)
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new jQuery.fn.init (/brackets.js:481:36)
at n (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:405)
at _appReadyHandler (/main.js:294:9)
at _callHandler (/utils/AppInit.js:93:13)
at _addListener (/utils/AppInit.js:128:13)
at Object.appReady (/utils/AppInit.js:141:9)
at Object.eval (/main.js:304:17)
at j (file:///C:/Program%20Files%20(x86)/Brackets/www/thirdparty/thirdparty.min.js:559:26911)
at Object.k.fireWith as resolveWith

CakePHP, .ctp file

Hi all,

The CakePHP framework, uses PHP files with an extension .ctp
Brackets-snippets, works well with my .php files. But not with .ctp (PHP defines default for these file)

Thank you again for your help

Bug id inside another id

Hi, can you fix / improve the possibility for adding an id inside another ?

e.g :

funct(${1:var}${2:, ${3:options}}){$4}

actualy, the outpout is

funct(var, ${3:options})

Thanks

Not working

Does not work after the update release 1.6.3
Does not start with the program brackets

Environment variables

You mention adding these as one of your To Do items. So I'm creating this issue to say I could really use that feature - access to the clipboard contents, for sure.

Tabs in stead of spaces?

All the spaces in the snippets are converted to tabs! It would be nice if the snippets could see the difference between tabs and spaces!

I put tab size on 4 so you can clearly see what i mean.
image

Do snippet scopes "cascade?"

For example, does a scope for CSS apply to SASS, SCSS and LESS as well? Or must each be called out explicitly?

Javascript as snippet

Should able to added javascript as snippet

for example
trigger key as "newdate"
and text will be javascript returned value like
today = new Date(); var dateString = today.format("dd-m-yy"); return dateString

Snippets for Yii Framework

I am planning to create snippets for Yii Framework but do not want them to come in the way of other PHP developers using other frameworks or basic PHP code. What would be the best way to approach this problem?

Not working on synced laptop

I have Bracket Snippets working on my desktop and sharing extensions via Dropbox with my laptop. The extension shows as installed on the laptop, but has no icon in the right margin for use.

Loosing modifications when going to another snippet

In the snippet manager, if I modify a snippet, then click on another one on the left column, I immediately change to the new one, loosing the modifications made on the previous one.

I suggest the current modifications to be automatically saved. Or to ask confirmation to the user (Do you want to save the current changes? Yes / No).
Maybe add an option to choose between the two behaviors... :-)

Scroll bar not working

Scroll bar not working, so I am not able to use your extension. Can't scroll down to see the snippets. This is all I can see. Looks like it is a helpful extension once I get it working. I am on a Mac. Thanks.
(I am new here, so I hope this is the right place to put this issue.)

screenshot 2015-03-10 17 15 04

'Enter' key does nothing / pastes snippets all the time

Sometimes, when typing a lot, switching between js/html, running and stopping LiveView - the Enter key just stops working as intended. Instead, in some file it just triggers input of a random snippet.
Sometimes it just does nothing in JS file and when hit in HTML file it just pastes 1st snippet in HTML list, and sometimes it's just oppoiste - does nothing in HTML file but pastes 1st JS snippet in JS file.
Happens 1-2 times per day, sometimes more often, but haven't found yet what triggers such behavior. Maybe someone else also encountered this and would be able to provide steps to reproduce... When this extension is off - everything works well.

Ugly buttons when using dark themes

When using a dark theme, the 'active' buttons look...not good. Is there a way to use colors or button styles defined in the theme?

snippets

Coming from Sublime, I'm really happy to have found this plugin. Thanks for all the work you've put into it!

Snippets in multiple scopes

It should be possible to make snippets that work in multiple scopes and/or an ALL scope option. For example a generic /* */ comment block snippet that could work in JS, CSS, LESS, etc.

No scrolling

Hey there,

thanks for this awesome extension! I really like it.
Unfortunately there I can't scroll the left part.
brackets-snippets-scrolling
I am using the QuickDark theme, latest version of Brackets (v.1.3.0) on ArchLinux.

Thanks in advance!

Tabs won't advance to next variable?

First, this extension looks like first-class work! It is implemented in a very smooth, Brackets-like way. Nice job!

I have Select next variable left at the default (tabs)

And I've created this snippet with a trigger of ai and a scope of any:
![${1:app} Icon](/images/icons/$2.jpg){.image-${3:right} .image-${4:25}}$5

Typing ai tab enters the snippet as expected with the variable app selected. Typing over the variable and press tab replaces the variable, but then inserts a tab rather than jumping to the next variable.

Do I have the snippet coded wrong?

File location for snippets

Just wondering if maybe at some point (if it's at all possible with how this extension is designed), snippets should be saved to somewhere other than the brackets.json file? I have some pretty large snippets and I'm thinking over time that file could get pretty large and it would be nice to have these saved separately.

Also when you remove the extension should your snippets be removed from brackets.json? I notice a lot of extensions leave behind their settings, probably not a big deal, just wondering what the Brackets best practice is?

Tab indent - snippet not expanding

If I indent my code using the tab key then snippet code hints do not show up. This occurs in CSS, PHP, and JS. I have not tested other scopes. If I use space bar to indent my code, then all is good.

Similarly, if I finish a block of HTML that was indented with the tab key, hit enter, and thus the next line is indented, snippet code hints will not show up either. I have to hit delete to get back to column 1 of that line in order for the code hints to work again.

Let me know if you need a demo or more info. Hope this can be fixed, this is such a great extension, one of the key reasons I finally switched from Sublime Text to Brackets. Thank you!!

System Info: Brackets 1.1; Windows 8.1

SCSS snippets not working

Brackets 1.2 and Brackets Snippets 1.6.3

No snippet hints show in SCSS files, including snippets marked with the SCSS scope.

Support current editor's indentation style and size

When the extension inserts a snippet, it should look at the current editor's indentation settings: using tabs or spaces, and if spaces, their number.

Then it should adjust the snippet to insert it with proper indentation.

Currently, if a snippet is defined with two spaces indentation, it is inserted as it, instead of four spaces (if set in Brackets' settings) or one tab.

Can be done either via some heuristic (some spaces more than previous line => one indentation level) or by adding a special character (\t for example...) in the saved snippet. The former has the advantage of being backward compatible with existing snippets, the latter is more flexible (I often use two indentation levels to mark a line continuation, ie. the split of a long line)..

Outdated screenshot?

In this repo's readme, there's a pair of buttons in the library screenshot named "Library" and "Settings". They don't appear for me. Have they been removed?

Send my custom snippets

Your extension is awesome and very easy to use. There is any way to send you my custom snippets?

Extremely tiny graph bug :)


I'm using Monokai Dark Soda theme.

Also, a small thingy that might need fixing:

I can't see the bottom of the info popup.

Thanks for the update 👍! These things aren't massive, I just thought I'd let you know :). Close if you like.

Tag trigger problem

im having a problem in triggering a TAG key. It seems to me it does not work. I tried already the blog suggestion to debug reload with and without extension and it does not work either.

I tried also to tick this on and off but nothing happen.
insert snippets on tab check mark

I also noted some little problem... See attached.
restore button now being view in full

I believe there is a bug on this. By the way i intalled today the brackets and EDWARD CHU SNIPPETS PLUGIN

How to sync snippets and settings

Instructions for syncing

As all user data are saved in brackets.json like any other extensions, you only need to sync this file between your machines.

Via Dropbox

First machine

OS X:

ln -s   ~/Library/Application\ Support/Brackets/brackets.json   ~/Dropbox/Brackets

Windows:

cmd /c mklink   %USERPROFILE%\dropbox\Brackets\brackets.json   %APPDATA%\Brackets\brackets.json

Other machine

Please backup and remove the existing brackets.json first

OS X:

ln -s   ~/Dropbox/Brackets/brackets.json   ~/Library/Application\ Support/Brackets

Windows:

cmd /c mklink   %APPDATA%\Brackets\brackets.json   %USERPROFILE%\dropbox\Brackets\brackets.json

Q&A

Q: Where is my brackets.json?
A: Choose Debug > Open Preferences File.

tabs in snippet text

Hey there,

I would love to use tabs instead of spaces in the snippet text. Currently I'm just copy pasting, but it would be a small useful addition IMHO.

OfficialBAMM

Where are user written snippets stored?

I'd like to be able to share snippets between computers via Dropbox, but my laptop does not pick up this extension if I share the ~/Dropbox/Application Support/brackets/extensions/user/edc.brackets-snippets folder from my dektop.

Snippets saving then dissapear

Recently downloaded. I have emmet installed and know there is an issue with that.
However, I am going through the process of creating a new snippet:
Trigger: hcom
Description: HTML Comment
Scope: HTML
Text:
What is the difference between 'Save' and 'Save and Create'?
It does not matter which button I choose, when I close Brackets or close to refresh - the ones I created disappear. In my book save is Save forever until I delete. What's up with this feature? If I have to manually add this to a local file - where is that located?

Snippets manager text legibility on dark themes

Hi,

I am trying your extension and its brand new snippets manager!

I would just point out that the text shadows in the manager reduce legibility on dark themes (see attached image 😉)

selection_002

embedded ruby not working

hi, love the extension, very intuitive and useful, however when i select embedded ruby and create a new rule, it does not come into effect. i have tested it with html and all is working, just doesnt seem to recognize that i am using embedded ruby.

hope this can be fixed!

thanks

esukex

Pressing tab after the generated script make the input go back to the previous parameters

I created this snippet called ngwhen

.when( '/${1:home}', {
    templateUrl: '${1:home}.html',
    controller: '${2:Home}',
    controllerAs: '${3:vm}'
})
  • generate the snippet with ngwhen
  • leave all paramters as default, pressing down on the keyboard
  • when you press ENTER and then TAB, you'll see the cursor returns to the second parameter

Thanks for your time and your plugin

Manual trigger?

Forgive me for asking a question instead of filing a bug report, but does the extension support manually triggering a snippet? In other words, I don't want to use tab to auto insert.

Snippets not working in <script>

Sorry if I'm just being a idiot, but i can't seem to get the plugin working for javascript commands in a html page.
Maybe this feature isn't added yet(or won't), but I feel like I'm doing something wrong!

OfficalBAMM

Reload Without Extensions problem

Hello,

After this extension is installed, Brackets's native option "Debug->Reload Without Extensions" doesn't work. I am using Brackets version 1.2.0-15697 on Windows platform.
BTW, I reviewed all snippets extensions and I found this one as the simplest one. I really like it.

Thanks,
Milosh.

Doesn´t load

The extension does not load with other extensions, I click in reload with extensions and it not reload or show itself on windows 8.1 brackets 1.2.0-15697

Markdown(GitHub) scope doesn't work?

I have written a snippet scoped to Markdown(GitHub) and a test document set to Markdown(GitHub).

The snippet won't trigger in that document. If I change the scope to Any, it then fires in that document.

What did I miss?

tester md www grav dev brackets

tester md www grav dev brackets

HTML paragraph snippet

Hi just wanted you to add a simple snippet for the <p> tag in HTML.

<p>${1}</p>

Great extension btw.

Support for special tab/space characters

I'd like using "\t","\s" in a snippet to specify the number of tabs/spaces.
For example:
echo "<pre>"; \tprint_r(${1}); echo "</pre>";
or
echo "<pre>"; \t\tvar_dump(${1}); echo "</pre>";

JS Snippets Not Expanding

Hi + great extension! Having a problem in JavaScript however. Will not show shortcuts or expand sometimes and I think it has something to do with white space (blank lines) in the code. I leave blank lines sometimes to separate out sections as I'm working and it seems like this may be causing a problems at times. Can't put my finger on it exactly. Wondering if you have any insight. Doesn't seem to be a problem in HTML or CSS.

Thanks in advance! -Guy Scott

Switch from ACE to CodeMirror?

Since Brackets is using CodeMirror, is there a way to simplify this snippet extension by using it rather than having to package another JavaScript-based editor?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.