Using Git Bash terminal in VS Code - how to force it to open internally The 2019 Stack...
Why isn't airport relocation done gradually?
Does coating your armor in silver add any effects?
Apparent duplicates between Haynes service instructions and MOT
Who coined the term "madman theory"?
For what reasons would an animal species NOT cross a *horizontal* land bridge?
What is the accessibility of a package's `Private` context variables?
Should I use my personal e-mail address, or my workplace one, when registering to external websites for work purposes?
Why did Acorn's A3000 have red function keys?
Why do we hear so much about the Trump administration deciding to impose and then remove tariffs?
What is the meaning of the verb "bear" in this context?
How come people say “Would of”?
Is this app Icon Browser Safe/Legit?
Which Sci-Fi work first showed weapon of galactic-scale mass destruction?
Is an up-to-date browser secure on an out-of-date OS?
Why is the maximum length of OpenWrt’s root password 8 characters?
How technical should a Scrum Master be to effectively remove impediments?
Identify boardgame from Big movie
One word riddle: Vowel in the middle
If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?
Can we generate random numbers using irrational numbers like π and e?
Am I thawing this London Broil safely?
Loose spokes after only a few rides
A poker game description that does not feel gimmicky
Is a "Democratic" Oligarchy-Style System Possible?
Using Git Bash terminal in VS Code - how to force it to open internally
The 2019 Stack Overflow Developer Survey Results Are Inbash testing for “open terminal”Mac terminal lost git knowledgeVisual Studio Code Git IssueUsing windows Git Bash in MobaXtermVS Code Weird Highlight in TerminalGit: Open Git-Bash in specific directoryHow do I open a new git bash terminal window at my current location in windows?How do I run multiple terminal commands in Visual Studio Code?Unable to Open any Terminal in Visual Studio Code — failed to launch exit code 2V.S. code terminal not refreshing
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
So I am fairly new to pretty much everything.
I follow Brad from YT channel Traversy Media and am adapting his stack - slowly but surely.
I use VS Code as my editor and Git Bash as my terminal.
When he or anyone else I find on Google use bash in VS Code it always opens internally.
VS Code offers a shortcut Ctrl+Shift+C to open it externally and a shortcut Ctrl+` (or in my case Ctrl+F1) to open it internally.
In my case it opens it externally with both shortcuts as well as with menu View->Terminal.
In VS Code it still takes up space at bottom meant for the terminal, except I can't type anything in it. It looks like this:
Two internally opened "terminals" with split view in VS Code (and this only happens when I open them internally. If I open them externally, they just open as you'd expect, without opening these useless panel at the bottom of VS Code.
It instead opens them like this: Both opened externally
My JSON Settings are these:
{
// Chosen Terminal
"terminal.integrated.shell.windows": "C:\Program Files\Git\bin\bash.exe",
// Prevent losing aliases, colorization etc. for the Git bash terminal
// "terminal.integrated.shellArgs.windows": [
// "--login",
// "--init-file",
// "C:\Program Files\Git\etc\profile"
// ],
// Windows Terminal
"terminal.external.windowsExec": "C:\Program Files\Git\bin\bash.exe",
// Chosen Theme Color and Color Customization
"workbench.colorTheme": "Monokai",
"workbench.colorCustomizations": {
"[Monokai]": {
// "statusBar.background": "#666666",
// "panel.background": "#555555",
// "sideBar.background": "#444444",
"tab.activeBackground": "#999999",
"tab.activeForeground": "#333333"
}
},
// Emmet Customization
"emmet.triggerExpansionOnTab": true,
// Editor Customization
"editor.fontSize": 14,
"editor.wordWrap": "on",
"editor.codeActionsOnSave": {},
"editor.tabSize": 2,
// PHP Tooltip Suggestions
"php.suggest.basic": false,
"php.validate.executablePath": "C:\xampp\php\php.exe", //for linting
"php.validate.run": "onSave", //change to onType if need be
"explorer.confirmDelete": false,
"beautify.language": {
"js": {
"type": [
"javascript",
"json",
"jsonc"
/*,
"html"*/
],
"filename": [
".jshintrc",
".jsbeautifyrc"
]
},
"css": [
"css",
"scss"
],
"html": [
"htm",
"html"
]
},
"beautify.config": {
"indent_size": 2,
"indent_char": " ",
"css": {
"indent_size": 2
}
},
// Git costumization
"window.zoomLevel": 0,
"workbench.colorCustomizations": {
"gitDecoration.addedResourceForeground": "#f45342",
"gitDecoration.modifiedResourceForeground": "#3888d8"
},
"workbench.settings.useSplitJSON": true,
"files.trimTrailingWhitespace": true,
"minify.minifyExistingOnSave": true
}
Can't find the solution to this anywhere on Google..
Can anyone provide some insight?
bash terminal git visual-studio-code
New contributor
add a comment |
So I am fairly new to pretty much everything.
I follow Brad from YT channel Traversy Media and am adapting his stack - slowly but surely.
I use VS Code as my editor and Git Bash as my terminal.
When he or anyone else I find on Google use bash in VS Code it always opens internally.
VS Code offers a shortcut Ctrl+Shift+C to open it externally and a shortcut Ctrl+` (or in my case Ctrl+F1) to open it internally.
In my case it opens it externally with both shortcuts as well as with menu View->Terminal.
In VS Code it still takes up space at bottom meant for the terminal, except I can't type anything in it. It looks like this:
Two internally opened "terminals" with split view in VS Code (and this only happens when I open them internally. If I open them externally, they just open as you'd expect, without opening these useless panel at the bottom of VS Code.
It instead opens them like this: Both opened externally
My JSON Settings are these:
{
// Chosen Terminal
"terminal.integrated.shell.windows": "C:\Program Files\Git\bin\bash.exe",
// Prevent losing aliases, colorization etc. for the Git bash terminal
// "terminal.integrated.shellArgs.windows": [
// "--login",
// "--init-file",
// "C:\Program Files\Git\etc\profile"
// ],
// Windows Terminal
"terminal.external.windowsExec": "C:\Program Files\Git\bin\bash.exe",
// Chosen Theme Color and Color Customization
"workbench.colorTheme": "Monokai",
"workbench.colorCustomizations": {
"[Monokai]": {
// "statusBar.background": "#666666",
// "panel.background": "#555555",
// "sideBar.background": "#444444",
"tab.activeBackground": "#999999",
"tab.activeForeground": "#333333"
}
},
// Emmet Customization
"emmet.triggerExpansionOnTab": true,
// Editor Customization
"editor.fontSize": 14,
"editor.wordWrap": "on",
"editor.codeActionsOnSave": {},
"editor.tabSize": 2,
// PHP Tooltip Suggestions
"php.suggest.basic": false,
"php.validate.executablePath": "C:\xampp\php\php.exe", //for linting
"php.validate.run": "onSave", //change to onType if need be
"explorer.confirmDelete": false,
"beautify.language": {
"js": {
"type": [
"javascript",
"json",
"jsonc"
/*,
"html"*/
],
"filename": [
".jshintrc",
".jsbeautifyrc"
]
},
"css": [
"css",
"scss"
],
"html": [
"htm",
"html"
]
},
"beautify.config": {
"indent_size": 2,
"indent_char": " ",
"css": {
"indent_size": 2
}
},
// Git costumization
"window.zoomLevel": 0,
"workbench.colorCustomizations": {
"gitDecoration.addedResourceForeground": "#f45342",
"gitDecoration.modifiedResourceForeground": "#3888d8"
},
"workbench.settings.useSplitJSON": true,
"files.trimTrailingWhitespace": true,
"minify.minifyExistingOnSave": true
}
Can't find the solution to this anywhere on Google..
Can anyone provide some insight?
bash terminal git visual-studio-code
New contributor
Please elaborate. Is there a different type of formatting for text than just plain text written in directly? Or did you perhaps mean, that my "code" should not be an image?
– s3c
21 hours ago
How did you install git? Did you choose to only have MingW available or did you integrate it so you can use it from a cmd?
– Seth
20 hours ago
If I open cmd and type inbash
and press Enter, it changes colorization and adds $ before input. If that doesn't answer your question, then I need to go through installation process again, since I don't remember MingW option.
– s3c
15 hours ago
add a comment |
So I am fairly new to pretty much everything.
I follow Brad from YT channel Traversy Media and am adapting his stack - slowly but surely.
I use VS Code as my editor and Git Bash as my terminal.
When he or anyone else I find on Google use bash in VS Code it always opens internally.
VS Code offers a shortcut Ctrl+Shift+C to open it externally and a shortcut Ctrl+` (or in my case Ctrl+F1) to open it internally.
In my case it opens it externally with both shortcuts as well as with menu View->Terminal.
In VS Code it still takes up space at bottom meant for the terminal, except I can't type anything in it. It looks like this:
Two internally opened "terminals" with split view in VS Code (and this only happens when I open them internally. If I open them externally, they just open as you'd expect, without opening these useless panel at the bottom of VS Code.
It instead opens them like this: Both opened externally
My JSON Settings are these:
{
// Chosen Terminal
"terminal.integrated.shell.windows": "C:\Program Files\Git\bin\bash.exe",
// Prevent losing aliases, colorization etc. for the Git bash terminal
// "terminal.integrated.shellArgs.windows": [
// "--login",
// "--init-file",
// "C:\Program Files\Git\etc\profile"
// ],
// Windows Terminal
"terminal.external.windowsExec": "C:\Program Files\Git\bin\bash.exe",
// Chosen Theme Color and Color Customization
"workbench.colorTheme": "Monokai",
"workbench.colorCustomizations": {
"[Monokai]": {
// "statusBar.background": "#666666",
// "panel.background": "#555555",
// "sideBar.background": "#444444",
"tab.activeBackground": "#999999",
"tab.activeForeground": "#333333"
}
},
// Emmet Customization
"emmet.triggerExpansionOnTab": true,
// Editor Customization
"editor.fontSize": 14,
"editor.wordWrap": "on",
"editor.codeActionsOnSave": {},
"editor.tabSize": 2,
// PHP Tooltip Suggestions
"php.suggest.basic": false,
"php.validate.executablePath": "C:\xampp\php\php.exe", //for linting
"php.validate.run": "onSave", //change to onType if need be
"explorer.confirmDelete": false,
"beautify.language": {
"js": {
"type": [
"javascript",
"json",
"jsonc"
/*,
"html"*/
],
"filename": [
".jshintrc",
".jsbeautifyrc"
]
},
"css": [
"css",
"scss"
],
"html": [
"htm",
"html"
]
},
"beautify.config": {
"indent_size": 2,
"indent_char": " ",
"css": {
"indent_size": 2
}
},
// Git costumization
"window.zoomLevel": 0,
"workbench.colorCustomizations": {
"gitDecoration.addedResourceForeground": "#f45342",
"gitDecoration.modifiedResourceForeground": "#3888d8"
},
"workbench.settings.useSplitJSON": true,
"files.trimTrailingWhitespace": true,
"minify.minifyExistingOnSave": true
}
Can't find the solution to this anywhere on Google..
Can anyone provide some insight?
bash terminal git visual-studio-code
New contributor
So I am fairly new to pretty much everything.
I follow Brad from YT channel Traversy Media and am adapting his stack - slowly but surely.
I use VS Code as my editor and Git Bash as my terminal.
When he or anyone else I find on Google use bash in VS Code it always opens internally.
VS Code offers a shortcut Ctrl+Shift+C to open it externally and a shortcut Ctrl+` (or in my case Ctrl+F1) to open it internally.
In my case it opens it externally with both shortcuts as well as with menu View->Terminal.
In VS Code it still takes up space at bottom meant for the terminal, except I can't type anything in it. It looks like this:
Two internally opened "terminals" with split view in VS Code (and this only happens when I open them internally. If I open them externally, they just open as you'd expect, without opening these useless panel at the bottom of VS Code.
It instead opens them like this: Both opened externally
My JSON Settings are these:
{
// Chosen Terminal
"terminal.integrated.shell.windows": "C:\Program Files\Git\bin\bash.exe",
// Prevent losing aliases, colorization etc. for the Git bash terminal
// "terminal.integrated.shellArgs.windows": [
// "--login",
// "--init-file",
// "C:\Program Files\Git\etc\profile"
// ],
// Windows Terminal
"terminal.external.windowsExec": "C:\Program Files\Git\bin\bash.exe",
// Chosen Theme Color and Color Customization
"workbench.colorTheme": "Monokai",
"workbench.colorCustomizations": {
"[Monokai]": {
// "statusBar.background": "#666666",
// "panel.background": "#555555",
// "sideBar.background": "#444444",
"tab.activeBackground": "#999999",
"tab.activeForeground": "#333333"
}
},
// Emmet Customization
"emmet.triggerExpansionOnTab": true,
// Editor Customization
"editor.fontSize": 14,
"editor.wordWrap": "on",
"editor.codeActionsOnSave": {},
"editor.tabSize": 2,
// PHP Tooltip Suggestions
"php.suggest.basic": false,
"php.validate.executablePath": "C:\xampp\php\php.exe", //for linting
"php.validate.run": "onSave", //change to onType if need be
"explorer.confirmDelete": false,
"beautify.language": {
"js": {
"type": [
"javascript",
"json",
"jsonc"
/*,
"html"*/
],
"filename": [
".jshintrc",
".jsbeautifyrc"
]
},
"css": [
"css",
"scss"
],
"html": [
"htm",
"html"
]
},
"beautify.config": {
"indent_size": 2,
"indent_char": " ",
"css": {
"indent_size": 2
}
},
// Git costumization
"window.zoomLevel": 0,
"workbench.colorCustomizations": {
"gitDecoration.addedResourceForeground": "#f45342",
"gitDecoration.modifiedResourceForeground": "#3888d8"
},
"workbench.settings.useSplitJSON": true,
"files.trimTrailingWhitespace": true,
"minify.minifyExistingOnSave": true
}
Can't find the solution to this anywhere on Google..
Can anyone provide some insight?
bash terminal git visual-studio-code
bash terminal git visual-studio-code
New contributor
New contributor
edited 20 hours ago
s3c
New contributor
asked yesterday
s3cs3c
13
13
New contributor
New contributor
Please elaborate. Is there a different type of formatting for text than just plain text written in directly? Or did you perhaps mean, that my "code" should not be an image?
– s3c
21 hours ago
How did you install git? Did you choose to only have MingW available or did you integrate it so you can use it from a cmd?
– Seth
20 hours ago
If I open cmd and type inbash
and press Enter, it changes colorization and adds $ before input. If that doesn't answer your question, then I need to go through installation process again, since I don't remember MingW option.
– s3c
15 hours ago
add a comment |
Please elaborate. Is there a different type of formatting for text than just plain text written in directly? Or did you perhaps mean, that my "code" should not be an image?
– s3c
21 hours ago
How did you install git? Did you choose to only have MingW available or did you integrate it so you can use it from a cmd?
– Seth
20 hours ago
If I open cmd and type inbash
and press Enter, it changes colorization and adds $ before input. If that doesn't answer your question, then I need to go through installation process again, since I don't remember MingW option.
– s3c
15 hours ago
Please elaborate. Is there a different type of formatting for text than just plain text written in directly? Or did you perhaps mean, that my "code" should not be an image?
– s3c
21 hours ago
Please elaborate. Is there a different type of formatting for text than just plain text written in directly? Or did you perhaps mean, that my "code" should not be an image?
– s3c
21 hours ago
How did you install git? Did you choose to only have MingW available or did you integrate it so you can use it from a cmd?
– Seth
20 hours ago
How did you install git? Did you choose to only have MingW available or did you integrate it so you can use it from a cmd?
– Seth
20 hours ago
If I open cmd and type in
bash
and press Enter, it changes colorization and adds $ before input. If that doesn't answer your question, then I need to go through installation process again, since I don't remember MingW option.– s3c
15 hours ago
If I open cmd and type in
bash
and press Enter, it changes colorization and adds $ before input. If that doesn't answer your question, then I need to go through installation process again, since I don't remember MingW option.– s3c
15 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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
});
}
});
s3c is a new contributor. Be nice, and check out our Code of Conduct.
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%2fsuperuser.com%2fquestions%2f1423237%2fusing-git-bash-terminal-in-vs-code-how-to-force-it-to-open-internally%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
s3c is a new contributor. Be nice, and check out our Code of Conduct.
s3c is a new contributor. Be nice, and check out our Code of Conduct.
s3c is a new contributor. Be nice, and check out our Code of Conduct.
s3c is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1423237%2fusing-git-bash-terminal-in-vs-code-how-to-force-it-to-open-internally%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
Please elaborate. Is there a different type of formatting for text than just plain text written in directly? Or did you perhaps mean, that my "code" should not be an image?
– s3c
21 hours ago
How did you install git? Did you choose to only have MingW available or did you integrate it so you can use it from a cmd?
– Seth
20 hours ago
If I open cmd and type in
bash
and press Enter, it changes colorization and adds $ before input. If that doesn't answer your question, then I need to go through installation process again, since I don't remember MingW option.– s3c
15 hours ago