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

Customize the file extensions associated to the languages #51

Open
echebbi opened this issue Aug 22, 2018 · 2 comments
Open

Customize the file extensions associated to the languages #51

echebbi opened this issue Aug 22, 2018 · 2 comments
Labels
feature request This issue proposes a new feature help wanted Extra attention is needed

Comments

@echebbi
Copy link
Owner

echebbi commented Aug 22, 2018

Originally ask by @XLPmc in #48.

When developping in C++ it can happen that developers use the .h extension to define C++ headers. As a consequence, since the language is determined by the extension of the file, Discord always shows Programming in C while the actual programming language is C++.

It would be convenient to add an option to project Properties page allowing the developer to specify that the language used in this project is C++ even if the files have the .h extension.

@echebbi echebbi added the feature request This issue proposes a new feature label Aug 22, 2018
@echebbi echebbi self-assigned this Aug 22, 2018
@echebbi echebbi removed their assignment Apr 14, 2019
@echebbi echebbi added the help wanted Extra attention is needed label Apr 14, 2019
@echebbi
Copy link
Owner Author

echebbi commented Apr 14, 2019

I don't have time to implement this at the moment.

Feel free to submit a PR if you want to contribute to the project.

@echebbi echebbi changed the title Allow to specify that *.h files correspond to C++ Customize the file extensions associated to the languages Apr 30, 2020
@echebbi
Copy link
Owner Author

echebbi commented Apr 30, 2020

On second thought, I really don't want to implement something as specific as "provide X workaround for Y language". However, I can provide a way to customize the file extensions associated to each language, e.g. a table as follows:

Programming language File extensions Special files
Java .java
C++ .cpp, .h
Docker Dockerfile

I updated the name of the issue accordingly. Hopefully I'll find the time to implement it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request This issue proposes a new feature help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant