Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable autocomplete with language-bael #529

Open
Bowfish opened this issue Jun 2, 2019 · 4 comments
Open

How to enable autocomplete with language-bael #529

Bowfish opened this issue Jun 2, 2019 · 4 comments

Comments

@Bowfish
Copy link

Bowfish commented Jun 2, 2019

I'm new to atom. I installed language-babel and would like to use the autocomplete feature. It detects the correct file type, but the autocomplete feature doesn't work. Which settings do I have to apply that the autocomplete feature for JSX tags works?

@johann1301s
Copy link

johann1301s commented Oct 13, 2019

I don't have a solution for you, but I have the same/similar issue😅

I am also trying to use autocomplete, but specifically with styled-components. Maybe the problem has a common source?

Inside the template literals, I have css like this;

const Title = styled.h1`
    font-size: 1.5em;
    text-align: center;
    color: palevioletred;
    backgrou... <-- autocomplete not working here!
    border: 5px solid red;
    display: blo... <-- not working here either!
`;

I have tried enabling the 'Styled-Components Auto-Complete Method' in the package settings, but this does help.

I have tried refreshing atom cmd + shift + p + typing in reload ( in macOS ), but this does not help either.

In the README it says;

The package also provides ... Support for styled-components CSS inside tagged template strings including CSS auto-completion ...

So why is it not working?

I think its a bit unclear/ambiguous what the 'Styled-Components Auto-Complete Method' in the package settings actually do.

It says;

Use Emmet to auto-complete in addition to default CSS completion

So does this toggle default CSS autocompletion, or not?

But the highlighting seems to work just fine!

Skjermbilde 2019-10-13 kl  12 26 59

So I ask a similar question to Bowfish, now 4 months and 11 days ago;

Which settings do I have to apply that the autocomplete feature for JSX tags styled-components works?

Any help would be appreciated! 🤷‍♂️👍🏼😅

@nehal-backspace
Copy link

use ctrl+e for windows

@jonohewitt
Copy link

Ctrl+E works on Mac too, thanks! It's quite an awkward shape to put your hand into though, is there a way to change the keymapping for this? I looked in the Atom keymapping settings but only found:

'atom-text-editor':
  'ctrl-e': 'editor:move-to-end-of-line'

It would be great to get autocomplete working on 'Enter' similar to standard HTML files.

@lmtX10ded
Copy link

lmtX10ded commented Dec 16, 2020

I have the same problem.
ctrl-e works fine for now thanks to emmet.
It'd be much better if emmet and autocomplete works in this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants