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

Method separator #56530

Open
asifcreativ opened this issue Aug 16, 2018 · 42 comments
Open

Method separator #56530

asifcreativ opened this issue Aug 16, 2018 · 42 comments
Labels
editor-rendering Editor rendering issues feature-request Request for new features or functionality
Milestone

Comments

@asifcreativ
Copy link

Issue Type: Feature Request

Please add method separator in class and shortcut for go back to previous Edit/last edit location ... Thanks

VS Code version: Code 1.26.0 (4e93618, 2018-08-13T16:20:44.170Z)
OS version: Darwin x64 17.7.0

@alexdima
Copy link
Member

There already exists a shortcut to go back, you can find it under Go > Back.

I'm not sure what you mean by method separator, can you please detail that?

@alexdima alexdima added the info-needed Issue requires more information from poster label Aug 16, 2018
@alexdima
Copy link
Member

@asifcreativ Email attachments do not make their way to github. Can you please upload directly on the github UI at #56530

@asifcreativ
Copy link
Author

screen shot 2018-08-16 at 7 49 53 pm

@alexdima alexdima added feature-request Request for new features or functionality editor-rendering Editor rendering issues and removed info-needed Issue requires more information from poster labels Aug 20, 2018
@vscodebot vscodebot bot removed the new release label Aug 21, 2018
@ghost
Copy link

ghost commented Nov 1, 2018

I'd like many checkboxes:

[ ] show separator before class definition
[ ] show separator before function definition
   |----[ ] show separator if function body is at least [ 3 ] lines long
[ ] show separator before class method definition
   |----[ ] show separator if class method's body is at least [ 3 ] lines long

each type of separator would be themable (color and maybe height in pixels)

@Delphier
Copy link

+1

1 similar comment
@mturki
Copy link

mturki commented Feb 19, 2019

+1

@zyvu
Copy link

zyvu commented May 17, 2019

+42

@snympi
Copy link

snympi commented May 20, 2019

Any progress? I just found this request because I was moving from VS to VS Code on some projects and missed the method separator in VS Code.

@biju-ps
Copy link

biju-ps commented May 27, 2019

+1

@zyvu
Copy link

zyvu commented May 28, 2019

maybe +69 is going to work ?? :)

+69

@zuhairtaha
Copy link

One of great features I miss after moved from webstorm to vscode is the methods divider. This horizontal line make the code much easier to read, it appears between methods in class and between normal functions. Anybody know extension do that. I'm also thinking about implementing an extension, but it looks unavailable to control these stuff at vscode extensions.

@alexdima alexdima added this to the Backlog milestone Aug 6, 2019
@alexdima alexdima removed their assignment Aug 6, 2019
@igor-sadchenko
Copy link

Hello everyone!
Any progress here?

@ghost
Copy link

ghost commented Nov 22, 2019

Hi
Any progress here?

@harkairt
Copy link

+1 Would use :)

Merry Christmas!

@jesseeads
Copy link

Please add this feature. Makes it very easy to see where code starts and stops.

@Tigerfink
Copy link

Pleeease add this feature. I've been using an editor with method separators for the first 15 years of my career. In recent 10 years I am forced to use editors without, and I never feel well with those.

@davidsiu
Copy link

davidsiu commented Mar 9, 2020

+1

Pretty please on this. I'm actually shocked that this does not exist already and I can't seem to find a good plugin for this either.

@schunkes
Copy link

schunkes commented Apr 2, 2020

+1
I would greatly appreciate this feature!

@JCKodel
Copy link

JCKodel commented Apr 3, 2020

Please, save me.

image

(those lines are made by Comment Divider extension, with some configs tweak and pressing manually [Alt]+[Y])

@VanDerLars
Copy link

any progress?

@biju-ps
Copy link

biju-ps commented Aug 11, 2020

Any progress please ?

@jmajonis
Copy link

I think everyone who loves this feature on Jetbrains IDEs but switched to VS Code eventually finds their way here.

@ahmaabdo
Copy link

Hi, Any progress please?

@irisida
Copy link

irisida commented Oct 4, 2020

+1 for this feature. Would be an absolute boon. Two years in the making already.... and agree, everyone from a jetbrains exposure has probably landed on this page more than once.

@irisida
Copy link

irisida commented Oct 7, 2020

I'm the one who opened duplicate #108229

Please can we have this? A small addition with a lot of added value.

@doojin
Copy link

doojin commented Oct 23, 2020

Waiting for this feature as well.. Please?

1 similar comment
@xfarmer
Copy link

xfarmer commented Oct 28, 2020

Waiting for this feature as well.. Please?

@alefragnani
Copy link

I just published an extension to provide such feature. It’s called Separators.

It uses the VS Code/extensions engine to detect Methods, Functions and Constructors, so it will work out of the box with any language extension you already have installed.

This is the initial release, but I’m thinking about adding some of the features commented above. What do you say?

If you find any error or have any suggestion, feel free to open issues on extension’s repo https://github.com/alefragnani/vscode-separators.

Enjoy 😉

@jmajonis
Copy link

jmajonis commented Nov 5, 2020

I just published an extension to provide such feature. It’s called Separators.

Thank you very much for this!

@irisida
Copy link

irisida commented Nov 5, 2020

I just published an extension to provide such feature. It’s called Separators.

It uses the VS Code/extensions engine to detect Methods, Functions and Constructors, so it will work out of the box with any language extension you already have installed.

This is the initial release, but I’m thinking about adding some of the features commented above. What do you say?

If you find any error or have any suggestion, feel free to open issues on extension’s repo https://github.com/alefragnani/vscode-separators.

Enjoy 😉

What's the property to change the separator colour? I'm using radical theme and the separator is a bit bold, I'd like to tame it, but hell yeah, thanks man.

@irisida
Copy link

irisida commented Nov 5, 2020

Got them... Ace

@JCKodel
Copy link

JCKodel commented Nov 7, 2020

I just published an extension to provide such feature. It’s called Separators.

It uses the VS Code/extensions engine to detect Methods, Functions and Constructors, so it will work out of the box with any language extension you already have installed.

This is the initial release, but I’m thinking about adding some of the features commented above. What do you say?

If you find any error or have any suggestion, feel free to open issues on extension’s repo https://github.com/alefragnani/vscode-separators.

Enjoy 😉

Thank you!

@alkaj
Copy link

alkaj commented Dec 6, 2020

I just published an extension to provide such feature. It’s called Separators.

It uses the VS Code/extensions engine to detect Methods, Functions and Constructors, so it will work out of the box with any language extension you already have installed.

This is the initial release, but I’m thinking about adding some of the features commented above. What do you say?

If you find any error or have any suggestion, feel free to open issues on extension’s repo https://github.com/alefragnani/vscode-separators.

Enjoy wink

Well done man... thanks!!!

@efibutov
Copy link

efibutov commented Jun 6, 2021

I just published an extension to provide such feature. It’s called Separators.

It uses the VS Code/extensions engine to detect Methods, Functions and Constructors, so it will work out of the box with any language extension you already have installed.

This is the initial release, but I’m thinking about adding some of the features commented above. What do you say?

If you find any error or have any suggestion, feel free to open issues on extension’s repo https://github.com/alefragnani/vscode-separators.

Enjoy wink

Thanks a lot, very useful!

I thought' maybe it could be useful to limit these lines length to fit to right ruler (say, 80 symbols)?
Is that something that could be implemented?

Thanks again!

@alefragnani
Copy link

Hi @efibutov , I'm glad you like the extension!

I guess it is possible. Feel free to open an issue on extension's repo, so I could take a look, or someone which already know how to do it, could contribute.

Thank you

@efibutov
Copy link

efibutov commented Jun 7, 2021

Hi @efibutov , I'm glad you like the extension!

I guess it is possible. Feel free to open an issue on extension's repo, so I could take a look, or someone which already know how to do it, could contribute.

Thank you

Thanks!
I'm just reading the docs on creating custom extension, hope I'll be able to write this functionality. In any case, will notify you about my progress :)

Thanks again

@jonlepage
Copy link

is there enough vote ?

@jonlepage
Copy link

here a temp alternative https://marketplace.visualstudio.com/items?itemName=alefragnani.separators

@PJBCoetzer
Copy link

Post is open since 2018... It looks like going the extension route is the only option.

Was on the backlog, but was removed.... A nice feature unfortunately lost.

+1 for what it is worth should the VSCode dev's look at the request again...

One of great features I miss after moved from webstorm to vscode is the methods divider. This horizontal line make the code much easier to read, it appears between methods in class and between normal functions. Anybody know extension do that. I'm also thinking about implementing an extension, but it looks unavailable to control these stuff at vscode extensions.

@Mindman79
Copy link

here a temp alternative https://marketplace.visualstudio.com/items?itemName=alefragnani.separators

This works perfectly, thanks!

@manojbaishya
Copy link

This issue should be closed because Separators works perfectly. It is as good as a native feature! Thanks and much respect to you @alefragnani! 🥳 🎉

@ananaslegend
Copy link

I just published an extension to provide such feature. It’s called Separators.

It uses the VS Code/extensions engine to detect Methods, Functions and Constructors, so it will work out of the box with any language extension you already have installed.

This is the initial release, but I’m thinking about adding some of the features commented above. What do you say?

If you find any error or have any suggestion, feel free to open issues on extension’s repo https://github.com/alefragnani/vscode-separators.

Enjoy 😉

Thank you so much! It works greate!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor-rendering Editor rendering issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests