VSCode: “Go to definition” from JS url (view url) to the Django view
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.
javascript python django visual-studio-code
add a comment |
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.
javascript python django visual-studio-code
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
add a comment |
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.
javascript python django visual-studio-code
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.
javascript python django visual-studio-code
javascript python django visual-studio-code
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
You can jump to the definition with Ctrl+Click or open the definition to the side with Ctrl+Alt+Click
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
You can jump to the definition with Ctrl+Click or open the definition to the side with Ctrl+Alt+Click
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
add a comment |
You can jump to the definition with Ctrl+Click or open the definition to the side with Ctrl+Alt+Click
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
add a comment |
You can jump to the definition with Ctrl+Click or open the definition to the side with Ctrl+Alt+Click
You can jump to the definition with Ctrl+Click or open the definition to the side with Ctrl+Alt+Click
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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