Is there function of collapse copy?


#1

Hi,

I had an uncomfortable problem.

  1. I want to copy the collapsed code like Dreamweaver. But it does not.
    How should I use the function?

  2. When I autocomplete css, space is created.
    I want to solve these problems

plz help me!


#2

The second problem is:


#3

How does Dreamweaver’s collapsed code differ from Atom’s folding?

When I autocomplete css, space is created.

You can override it in your snippets.cson file by making a snippet like

'.source.css':
  'border':
    prefix: 'bor'
    body: 'border:$1;'

#4

Dreamweaver is as below;

I can copy with folding code!

but Atom is;

The folding is expand…
that’s a little uncomfortable.

and Your solution has been very helpful! Sincerely thank you!

but I want to apply to all css.
I tried to apply the symbol “*” but it did not.


#5

Unfortunately, even if it’s possible, it wouldn’t be a quick fix. A package might be able to insert itself into the process of copying or cutting text and then iterate through the selection and record the folded lines, then refold them after pasting, but you’d probably have to override all the clipboard operations.

and Your solution has been very helpful! Sincerely thank you!

but I want to apply to all css.
I tried to apply the symbol “*” but it did not.

You would have to replicate that snippet for each of the properties you use.


#6

oh… sadly now I see. Thanks for the kind explanation.

I have no choice but to apply it individually.

I really appreciate your help! thank you!


#7

No problem. :slight_smile:


#8

Regarding:

Atom has many missing attributes in the suggestion. I guess it’s up to somebody to pinpoint the exact module and try to fill them in according to HTML tag spec.