VSCode: “Go to definition” from JS url (view url) to the Django view












5















I am using sublime now and want to switch to the vscode but one functionality of sublime holding me so far.



In the posted image below left side is test.js and right side is view.py having simple test_view definition.



If I use go to definition on the "test_view" (at line url: "/test_app/test_view/"+$routeParams.id) in the JS, sublime redirects to the test_view definition of the Django view.



I am looking similar functionality/configuration in the VSCode.



enter image description here










share|improve this question

























  • I don't think there is such support for it in VSCode.

    – ruddra
    Nov 23 '18 at 8:31











  • yes seems to be

    – Priyank
    Nov 25 '18 at 6:31











  • Have you tried with (ctrl + click) option on test_view string ?

    – Chinmoy Samanta
    Nov 29 '18 at 7:05











  • Are you using any of the Django specific extensions? Do you recommend any?

    – mgrollins
    Nov 30 '18 at 20:44
















5















I am using sublime now and want to switch to the vscode but one functionality of sublime holding me so far.



In the posted image below left side is test.js and right side is view.py having simple test_view definition.



If I use go to definition on the "test_view" (at line url: "/test_app/test_view/"+$routeParams.id) in the JS, sublime redirects to the test_view definition of the Django view.



I am looking similar functionality/configuration in the VSCode.



enter image description here










share|improve this question

























  • I don't think there is such support for it in VSCode.

    – ruddra
    Nov 23 '18 at 8:31











  • yes seems to be

    – Priyank
    Nov 25 '18 at 6:31











  • Have you tried with (ctrl + click) option on test_view string ?

    – Chinmoy Samanta
    Nov 29 '18 at 7:05











  • Are you using any of the Django specific extensions? Do you recommend any?

    – mgrollins
    Nov 30 '18 at 20:44














5












5








5


2






I am using sublime now and want to switch to the vscode but one functionality of sublime holding me so far.



In the posted image below left side is test.js and right side is view.py having simple test_view definition.



If I use go to definition on the "test_view" (at line url: "/test_app/test_view/"+$routeParams.id) in the JS, sublime redirects to the test_view definition of the Django view.



I am looking similar functionality/configuration in the VSCode.



enter image description here










share|improve this question
















I am using sublime now and want to switch to the vscode but one functionality of sublime holding me so far.



In the posted image below left side is test.js and right side is view.py having simple test_view definition.



If I use go to definition on the "test_view" (at line url: "/test_app/test_view/"+$routeParams.id) in the JS, sublime redirects to the test_view definition of the Django view.



I am looking similar functionality/configuration in the VSCode.



enter image description here







javascript python django visual-studio-code






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 26 '18 at 19:04









Gama11

11.4k32247




11.4k32247










asked Nov 23 '18 at 6:20









PriyankPriyank

920828




920828













  • I don't think there is such support for it in VSCode.

    – ruddra
    Nov 23 '18 at 8:31











  • yes seems to be

    – Priyank
    Nov 25 '18 at 6:31











  • Have you tried with (ctrl + click) option on test_view string ?

    – Chinmoy Samanta
    Nov 29 '18 at 7:05











  • Are you using any of the Django specific extensions? Do you recommend any?

    – mgrollins
    Nov 30 '18 at 20:44



















  • I don't think there is such support for it in VSCode.

    – ruddra
    Nov 23 '18 at 8:31











  • yes seems to be

    – Priyank
    Nov 25 '18 at 6:31











  • Have you tried with (ctrl + click) option on test_view string ?

    – Chinmoy Samanta
    Nov 29 '18 at 7:05











  • Are you using any of the Django specific extensions? Do you recommend any?

    – mgrollins
    Nov 30 '18 at 20:44

















I don't think there is such support for it in VSCode.

– ruddra
Nov 23 '18 at 8:31





I don't think there is such support for it in VSCode.

– ruddra
Nov 23 '18 at 8:31













yes seems to be

– Priyank
Nov 25 '18 at 6:31





yes seems to be

– Priyank
Nov 25 '18 at 6:31













Have you tried with (ctrl + click) option on test_view string ?

– Chinmoy Samanta
Nov 29 '18 at 7:05





Have you tried with (ctrl + click) option on test_view string ?

– Chinmoy Samanta
Nov 29 '18 at 7:05













Are you using any of the Django specific extensions? Do you recommend any?

– mgrollins
Nov 30 '18 at 20:44





Are you using any of the Django specific extensions? Do you recommend any?

– mgrollins
Nov 30 '18 at 20:44












1 Answer
1






active

oldest

votes


















0














You can jump to the definition with Ctrl+Click or open the definition to the side with Ctrl+Alt+Click






share|improve this answer
























  • I am not asking about go to definition function within JS or JS imported files. Question is navigating to the Django view from JS url.

    – Priyank
    Nov 30 '18 at 13:22













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53441507%2fvscode-go-to-definition-from-js-url-view-url-to-the-django-view%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You can jump to the definition with Ctrl+Click or open the definition to the side with Ctrl+Alt+Click






share|improve this answer
























  • I am not asking about go to definition function within JS or JS imported files. Question is navigating to the Django view from JS url.

    – Priyank
    Nov 30 '18 at 13:22


















0














You can jump to the definition with Ctrl+Click or open the definition to the side with Ctrl+Alt+Click






share|improve this answer
























  • I am not asking about go to definition function within JS or JS imported files. Question is navigating to the Django view from JS url.

    – Priyank
    Nov 30 '18 at 13:22
















0












0








0







You can jump to the definition with Ctrl+Click or open the definition to the side with Ctrl+Alt+Click






share|improve this answer













You can jump to the definition with Ctrl+Click or open the definition to the side with Ctrl+Alt+Click







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 30 '18 at 11:09









Sumit PatelSumit Patel

2346




2346













  • I am not asking about go to definition function within JS or JS imported files. Question is navigating to the Django view from JS url.

    – Priyank
    Nov 30 '18 at 13:22





















  • I am not asking about go to definition function within JS or JS imported files. Question is navigating to the Django view from JS url.

    – Priyank
    Nov 30 '18 at 13:22



















I am not asking about go to definition function within JS or JS imported files. Question is navigating to the Django view from JS url.

– Priyank
Nov 30 '18 at 13:22







I am not asking about go to definition function within JS or JS imported files. Question is navigating to the Django view from JS url.

– Priyank
Nov 30 '18 at 13:22




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53441507%2fvscode-go-to-definition-from-js-url-view-url-to-the-django-view%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'