javascript - Go back from an imported js object file to the file where it was CMD + clicked in Visual Studio Code -


in visual studio on macos sierra js project able go file imported object exported pressing cmd + click object. example:

import { updateprofilemutation } '../../../graphql/mutations'; 

when cmd + click updateprofilemutation directed mutations file updateprofilemutation exported from. valuable feature. problem current file above code resides closed when new file opens. problematic behaviour because want in file , go file imported to. question is: can force cmd + click open new tab file? or there keyboard shortcut going file have clicked?

the default behavior when opening file in visual studio code open in preview mode.

this show file name italicized in editor tab, , replace specific tab next file open unless specify want keep editor.

there multiple ways achieve after:

tell visual studio code keep current editor before moving file, shortcut ctrl+k followed enter.

you can shortcut on mac using command palette, should cmd+k followed enter though.

you disable preview mode opening files according needs these 2 settings:

"workbench.editor.enablepreview": false, "workbench.editor.enablepreviewfromquickopen": false 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -