Skip to content

Instantly share code, notes, and snippets.

@abdumu
Last active September 13, 2020 22:19
Show Gist options
  • Save abdumu/8a8a5e7108dfdc572ed04c349347f36b to your computer and use it in GitHub Desktop.
Save abdumu/8a8a5e7108dfdc572ed04c349347f36b to your computer and use it in GitHub Desktop.
remove the sh***y actions icons & [unsupported] sh***y label from vscode
#!/bin/bash
os=${OSTYPE//[0-9.-]*/}
gistUrl="https://gist.githubusercontent.com/abdumu/8a8a5e7108dfdc572ed04c349347f36b/raw/workbench.desktop.main.css"
css=$(wget $gistUrl -q -O -)
case "$os" in
linux)
path="/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.css"
cp "$path" "$path.bk"
echo "\n""$css" >> "$path"
;;
darwin)
path="/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.css"
cp "$path" "$path.bk"
echo "\n""$css" >> "$path"
;;
*)
echo "Unknown Operating system $OSTYPE"
exit 1
esac
echo "Restart VS Code, and ignore the re-install message."
/*
- make copy of workbench.desktop.main.css (in linux can be found at found /usr/share/code/resources/app/out/vs/workbench)
- copy these or one of them to the bottom of the file
*/
/*remove top right icons */
#workbench\.parts\.editor > div.content > div.grid-view-container > div > div > div > div.split-view-container > div > div > div.title.show-file-icons.title-border-bottom > div.title-actions { display :none }
/*hide [unsupported]*/
#workbench\.parts\.titlebar > div.window-title {background: linear-gradient(-90deg,transparent 6.5ch, currentColor 10px, currentColor 100%); -webkit-text-fill-color: transparent; -webkit-background-clip: text;}
/*hide current tab label*/
.monaco-workbench .part.editor>.content .editor-group-container>.title { display: none !important; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment