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

[css] Order suggested CSS properties based on usage not alphabetically #3145

Closed
mohsen1 opened this issue Feb 19, 2016 · 7 comments
Closed
Assignees
Labels
css-less-scss Issues and items concerning CSS,Less,SCSS styling feature-request Request for new features or functionality on-release-notes Issue/pull request mentioned in release notes on-testplan
Milestone

Comments

@mohsen1
Copy link

mohsen1 commented Feb 19, 2016

For example: for b the first suggested property is backface-visibility: which is rarely used compared to background:

@egamma egamma added css-less-scss Issues and items concerning CSS,Less,SCSS styling feature-request Request for new features or functionality labels Feb 20, 2016
@aeschli aeschli added this to the Backlog milestone Feb 22, 2016
@aeschli aeschli changed the title Order suggested CSS properties based on usage not alphabetically [css] Order suggested CSS properties based on usage not alphabetically Feb 22, 2016
@mohsen1
Copy link
Author

mohsen1 commented Mar 22, 2017

To find the most popular CSS properties we ca use GitHub data on Google Big Query. For example:

SELECT
  COUNT(path), content
FROM [bigquery-public-data:github_repos.files] files
JOIN [bigquery-public-data:github_repos.contents] contents 
  ON contents.id = files.id
WHERE
  path LIKE '%.css'
  OR path LIKE '%.scss'
  OR path LIKE '%.less'
  OR path LIKE '%.sass'
AND content CONTAINS 'background-color'

Where can I find a table of all CSS properties so I can build the popularity table based on GitHub data?

@aeschli
Copy link
Contributor

aeschli commented Mar 22, 2017

@wallyzielinski
Copy link

+1 I came here to ask for the same thing. There are some selectors which really are never used and should never be pushed to the top of the auto-suggest. For example, if you type "wid", the first suggestion is "widows", a property I didn't even know existed until VS Code tried to autocomplete it for me.

@flower17
Copy link

flower17 commented Jul 2, 2018

+1
Same here. I usually type 'wid' and press enter expecting to get 'width', but it prints 'widows'.

@tiagomsmagalhaes
Copy link

I have nothing against widows but would be nice to have width first, because we use it all the time

@Tyriar
Copy link
Member

Tyriar commented Jun 29, 2019

There's a big discussion thread about this on reddit https://www.reddit.com/r/webdev/comments/c6pfay/the_most_stupid_autocompletion_in_the_entire_world/

@octref
Copy link
Contributor

octref commented Oct 21, 2019

Chrome publishes its stats: https://www.chromestatus.com/metrics/css/popularity

We could its ordering to assign a ranking order to CSS properties.

image

@octref octref modified the milestones: Backlog, November 2019 Oct 30, 2019
@octref octref reopened this Nov 4, 2019
octref added a commit that referenced this issue Nov 4, 2019
octref added a commit that referenced this issue Nov 4, 2019
@aeschli aeschli assigned octref and unassigned aeschli Dec 6, 2019
@octref octref added the on-release-notes Issue/pull request mentioned in release notes label Dec 6, 2019
octref added a commit to microsoft/vscode-docs that referenced this issue Dec 6, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
css-less-scss Issues and items concerning CSS,Less,SCSS styling feature-request Request for new features or functionality on-release-notes Issue/pull request mentioned in release notes on-testplan
Projects
None yet
Development

No branches or pull requests

8 participants