Run task when opening filetype The Next CEO of Stack OverflowMultiple commands/tasks with Visual Studio CodeHow to open the lightbulb via shortcut?How do I configure Visual Studio Code to open files always in a new tab?keyboard shortcut to switch focus in VSCode on a Mac?Jump to bottom of Integrated Terminal when running PowerShellVSCode: How can I execute an arbitrary task using the JavaScript API?how to pass multiple args to vscode task command?Opening a new terminal in vscode for 'start' command in .bat filesHow can I get VS Code tasks to alert me when Rollup --watch build fails?How to split the terminal when running tasks in VSCode?

Avoiding the "not like other girls" trope?

Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico

What does this strange code stamp on my passport mean?

Can I hook these wires up to find the connection to a dead outlet?

Oldie but Goldie

Finitely generated matrix groups whose eigenvalues are all algebraic

Can Sri Krishna be called 'a person'?

Why does the freezing point matter when picking cooler ice packs?

Find the majority element, which appears more than half the time

Is it possible to make a 9x9 table fit within the default margins?

Why does sin(x) - sin(y) equal this?

Is it reasonable to ask other researchers to send me their previous grant applications?

Gödel's incompleteness theorems - what are the religious implications?

Ising model simulation

Can you teleport closer to a creature you are Frightened of?

Direct Implications Between USA and UK in Event of No-Deal Brexit

How badly should I try to prevent a user from XSSing themselves?

How can I prove that a state of equilibrium is unstable?

How exploitable/balanced is this homebrew spell: Spell Permanency?

Is it possible to create a QR code using text?

Why did the Drakh emissary look so blurred in S04:E11 "Lines of Communication"?

How to show a landlord what we have in savings?

Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?

Is the 21st century's idea of "freedom of speech" based on precedent?



Run task when opening filetype



The Next CEO of Stack OverflowMultiple commands/tasks with Visual Studio CodeHow to open the lightbulb via shortcut?How do I configure Visual Studio Code to open files always in a new tab?keyboard shortcut to switch focus in VSCode on a Mac?Jump to bottom of Integrated Terminal when running PowerShellVSCode: How can I execute an arbitrary task using the JavaScript API?how to pass multiple args to vscode task command?Opening a new terminal in vscode for 'start' command in .bat filesHow can I get VS Code tasks to alert me when Rollup --watch build fails?How to split the terminal when running tasks in VSCode?










0















I have a filetype (.xyz) that represents compressed data. I'd like to run a command to uncompress it before opening it in vs code.



Something like:



xyzunzip file > tmpfile


and have vs code open tmpfile.



This way, I don't need to switch to the terminal to run the command and open it in vscode each time.



We could avoid creating tmpfile, if the output could be piped to a new editor window.



So, breaking it down, I think it comes down to:



  • How do I bind a task to an action, such as opening a filetype?

  • How do I pipe the output of the task back into vs code?









share|improve this question


























    0















    I have a filetype (.xyz) that represents compressed data. I'd like to run a command to uncompress it before opening it in vs code.



    Something like:



    xyzunzip file > tmpfile


    and have vs code open tmpfile.



    This way, I don't need to switch to the terminal to run the command and open it in vscode each time.



    We could avoid creating tmpfile, if the output could be piped to a new editor window.



    So, breaking it down, I think it comes down to:



    • How do I bind a task to an action, such as opening a filetype?

    • How do I pipe the output of the task back into vs code?









    share|improve this question
























      0












      0








      0








      I have a filetype (.xyz) that represents compressed data. I'd like to run a command to uncompress it before opening it in vs code.



      Something like:



      xyzunzip file > tmpfile


      and have vs code open tmpfile.



      This way, I don't need to switch to the terminal to run the command and open it in vscode each time.



      We could avoid creating tmpfile, if the output could be piped to a new editor window.



      So, breaking it down, I think it comes down to:



      • How do I bind a task to an action, such as opening a filetype?

      • How do I pipe the output of the task back into vs code?









      share|improve this question














      I have a filetype (.xyz) that represents compressed data. I'd like to run a command to uncompress it before opening it in vs code.



      Something like:



      xyzunzip file > tmpfile


      and have vs code open tmpfile.



      This way, I don't need to switch to the terminal to run the command and open it in vscode each time.



      We could avoid creating tmpfile, if the output could be piped to a new editor window.



      So, breaking it down, I think it comes down to:



      • How do I bind a task to an action, such as opening a filetype?

      • How do I pipe the output of the task back into vs code?






      visual-studio-code






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 7 at 19:35









      RajaRaja

      1,09141223




      1,09141223






















          0






          active

          oldest

          votes












          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%2f55051526%2frun-task-when-opening-filetype%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          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%2f55051526%2frun-task-when-opening-filetype%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

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко