Is it possible to import a Sublime function into Vscode?

Asked

Viewed 78 times

2

There is a function that I use a lot in the sublime that is the F12:

{ "keys": ["f12"], "command": "goto_definition" },

It displays all functions with the same name and even guide to the target file of this function/style. I wanted to incorporate this same function in Vscode. I tried some examples but none of them worked.

  • This might help you: https://stackoverflow.com/questions/47995468/vscode-c-sharp-go-to-definition-f12-notworking

1 answer

4


No VS Code exite o Go to Definition and the Peek Definition As you can see in the official documentation:

https://code.visualstudio.com/docs/editor/editingevolved#_go-to-Definition

https://code.visualstudio.com/docs/editor/editingevolved#_Peek

It seems to me you need more than Peek, see how it works in these images:

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

In case you wanted to use some extension, I believe this one should be useful to you: https://marketplace.visualstudio.com/items?itemName=VisualStudioPlatformTeam.CtrlClickGoToDefinition


In the CSS

Now in case you want to get information from style in CSS just you press Ctrl and does the hover about the style, and if you click with Ctrl you go straight to the file .css where is the class, or you can use the Peek Definition to see "locally" the styles of this class that are there in the .css

See in the picture:

inserir a descrição da imagem aqui

If you want there is also extension to do this: https://marketplace.visualstudio.com/items?itemName=pranaygp.vscode-css-peek

Browser other questions tagged

You are not signed in. Login or sign up in order to post.