microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
161.98k stars 28.48k forks source link

Method separator #56530

Open asifcreativ opened 6 years ago

asifcreativ commented 6 years ago

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 (4e9361845dc28659923a300945f84731393e210d, 2018-08-13T16:20:44.170Z) OS version: Darwin x64 17.7.0

alexdima commented 6 years ago

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 commented 6 years ago

@asifcreativ Email attachments do not make their way to github. Can you please upload directly on the github UI at https://github.com/Microsoft/vscode/issues/56530

asifcreativ commented 6 years ago
screen shot 2018-08-16 at 7 49 53 pm
ghost commented 5 years ago

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 commented 5 years ago

+1

mturki commented 5 years ago

+1

zyvu commented 5 years ago

+42

snympi commented 5 years ago

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 commented 5 years ago

+1

zyvu commented 5 years ago

maybe +69 is going to work ?? :)

+69

zuhairtaha commented 5 years ago

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.

igor-sadchenko commented 4 years ago

Hello everyone! Any progress here?

ghost commented 4 years ago

Hi Any progress here?

harkairt commented 4 years ago

+1 Would use :)

Merry Christmas!

jesseeads commented 4 years ago

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

Tigerfink commented 4 years ago

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 commented 4 years ago

+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 commented 4 years ago

+1 I would greatly appreciate this feature!

JCKodel commented 4 years ago

Please, save me.

image

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

VanDerLars commented 4 years ago

any progress?

biju-ps commented 4 years ago

Any progress please ?

jmajonis commented 4 years ago

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

ahmaabdo commented 4 years ago

Hi, Any progress please?

irisida commented 3 years ago

+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 commented 3 years ago

I'm the one who opened duplicate #108229

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

doojin commented 3 years ago

Waiting for this feature as well.. Please?

xfarmer commented 3 years ago

Waiting for this feature as well.. Please?

alefragnani commented 3 years ago

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 commented 3 years ago

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

Thank you very much for this!

irisida commented 3 years ago

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 commented 3 years ago

Got them... Ace

JCKodel commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

is there enough vote ?

jonlepage commented 2 years ago

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

PJBCoetzer commented 2 years ago

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 commented 2 years ago

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

This works perfectly, thanks!

manojbaishya commented 1 year ago

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 commented 1 year ago

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!