Coder Social home page Coder Social logo

Comments (10)

kevinsawicki avatar kevinsawicki commented on September 28, 2024

The multiline comment snippet prefix is currently /** not /. There are also doc_v and doc_f snippets as well.

You can see all of theme here: https://github.com/atom/language-php/blob/master/snippets/language-php.cson

from language-php.

freestream avatar freestream commented on September 28, 2024

Sorry did not noticed that github converted my text into markdown. Of course i typed /** and not just /.
I have tried with a clean Atom installation and the default config but still cant make it work.

from language-php.

kevinsawicki avatar kevinsawicki commented on September 28, 2024

Does the file you tried it in start with <?php at the top?

from language-php.

freestream avatar freestream commented on September 28, 2024

Yes it does. I have not tried with a clean new php file with only a <?php in the top. Still no snippit.

from language-php.

kevinsawicki avatar kevinsawicki commented on September 28, 2024

What version of Atom are you using?

from language-php.

freestream avatar freestream commented on September 28, 2024

v.0.85.0

from language-php.

freestream avatar freestream commented on September 28, 2024

Looks like i can get the snippet to work if i type /** and press tab. That is not as it is explained in the snippet list, /**\n

from language-php.

kevinsawicki avatar kevinsawicki commented on September 28, 2024

Which snippet list are you referring to?

The prefix in the file is listed as /**: https://github.com/atom/language-php/blob/master/snippets/language-php.cson#L18

from language-php.

freestream avatar freestream commented on September 28, 2024

I'm trying to trigger "Start Docblock" by typing /**
Apparently the trigger for the snippet to be printed is by pressing tab directly after finishing the snippet short cut.
I used sublime text before together with "spadgos" plugin "sublime-jsdocs". The snippets in that module was printed pressing enter (new line key) directly after the snippet short cut. In my point of view that is much more logical. I want a new line after i type in /** so there for is feels more logical to press new line key then the tab key. By the logic of using tab to print the snippet it would result in

/**    

and not

/**
* 

as i except it to do. This might be more of matter of established habits but stil it is not a logical shortcut trigger.

from language-php.

50Wliu avatar 50Wliu commented on September 28, 2024

Should be resolved with autocomplete-plus/autocomplete-snippets now being bundled in Atom.

from language-php.

Related Issues (20)

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.