VSCode: Difference between revisions
Jump to navigation
Jump to search
(33 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
sudo snap install code --classic | sudo snap install code --classic | ||
code ./my_project | code ./my_project | ||
==Shortcuts== | |||
{| | |||
| valign="top" | | |||
─────────────────────────────────────────────── | |||
⌘ + Shift + \ » Focus terminal tabs view | |||
⌘ + PgUp » Move to previous terminal | |||
⌘ + PgDn » Move to next terminal | |||
| valign="top" | | |||
─────────────────────────────────────────────── | |||
Control + Shift + \ » Focus terminal tabs view | |||
Control + PgUp » Move to previous terminal | |||
Control + PgDn » Move to next terminal | |||
|} | |||
==Docker== | ==Docker== | ||
< | <syntaxhighlight lang="bash"> | ||
mkdir -p $HOME/.chorke/docker/vscode/.config | mkdir -p $HOME/.chorke/docker/vscode/.config | ||
docker run -it --name=vscode \ | docker run -it --name=vscode \ | ||
Line 13: | Line 29: | ||
--volume "$HOME/chorke/academia/java/base_wss/core_ws:/home/coder/project" \ | --volume "$HOME/chorke/academia/java/base_wss/core_ws:/home/coder/project" \ | ||
hub.chorke.org/codercom/code-server:latest | hub.chorke.org/codercom/code-server:latest | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang="bash"> | ||
mkdir -p $HOME/chorke/academia/java/base_wss/core_ws | mkdir -p $HOME/chorke/academia/java/base_wss/core_ws | ||
docker run --detach \ | docker run --detach \ | ||
Line 28: | Line 44: | ||
--volume "$HOME/chorke/academia/java/base_wss/core_ws:/config" \ | --volume "$HOME/chorke/academia/java/base_wss/core_ws:/config" \ | ||
hub.chorke.org/linuxserver/code-server | hub.chorke.org/linuxserver/code-server | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang="bash"> | ||
mkdir -p $HOME/chorke/academia/java/base_wss/core_ws | mkdir -p $HOME/chorke/academia/java/base_wss/core_ws | ||
docker run --detach \ | docker run --detach \ | ||
Line 43: | Line 59: | ||
--volume "$HOME/chorke/academia/java/base_wss/core_ws:/config" \ | --volume "$HOME/chorke/academia/java/base_wss/core_ws:/config" \ | ||
hub.chorke.org/linuxserver/code-server:arm32v7-version-v3.8.0 | hub.chorke.org/linuxserver/code-server:arm32v7-version-v3.8.0 | ||
</ | </syntaxhighlight> | ||
==Git Ignore== | ==Git Ignore== | ||
Line 55: | Line 71: | ||
==Extensions== | ==Extensions== | ||
''' | '''quick open (control + p)''' | ||
ext install redhat.vscode-extension-red-hat-business-automation-bundle | |||
ext install kie-group.vscode-extension-kogito-bundle | |||
ext install isudox.vscode-jetbrains-keybindings | |||
ext install EQuimper.react-native-react-redux | ext install EQuimper.react-native-react-redux | ||
ext install SonarSource.sonarlint-vscode | |||
ext install msjsdiag.vscode-react-native | ext install msjsdiag.vscode-react-native | ||
ext install Postman.postman-for-vscode | |||
ext install PKief.material-icon-theme | ext install PKief.material-icon-theme | ||
ext install ckolkman.vscode-postgres | |||
ext install esbenp.prettier-vscode | ext install esbenp.prettier-vscode | ||
ext install ritwickdey.LiveServer | ext install ritwickdey.LiveServer | ||
ext install DotJoshJohnson.xml | |||
ext install redhat.vscode-xml | |||
ext install ms-kubernetes-tools.vscode-kubernetes-tools | |||
ext install ms-vscode-remote.remote-containers | |||
ext install ms-azuretools.vscode-docker | |||
ext install ms-python.python | |||
ext install iocave.customize-ui | |||
==Preferences== | |||
'''open settings (control + shift + p)''' | |||
Preferences:Open Settings (JSON) | |||
Preferences:Open Settings (UI) | |||
==File Associations== | |||
<syntaxhighlight lang="bash"> | |||
# Debian | |||
echo -E "$(jq '."files.associations"= {"*.bpmn": "xml", "*.dmn": "xml"}'\ | |||
${HOME}/.config/Code/User/settings.json)">\ | |||
${HOME}/.config/Code/User/settings.json | |||
# MacOS | |||
echo -E "$(jq '."files.associations"= {"*.bpmn": "xml", "*.dmn": "xml"}'\ | |||
${HOME}/Library/Application Support/Code/User/settings.json)">\ | |||
${HOME}/Library/Application Support/Code/User/settings.json | |||
</syntaxhighlight> | |||
==File Associations== | |||
<syntaxhighlight lang="bash"> | |||
# Debian | |||
cat ${HOME}/.config/Code/User/settings.json | |||
echo "$(cd ~/.nvm/versions/node/v18.16.0/bin/;pwd)/node" | |||
echo -E "$(jq '."sonarlint.pathToNodeExecutable"="/home/shahed/.nvm/versions/node/v18.16.0/bin/node"'\ | |||
${HOME}/.config/Code/User/settings.json)">\ | |||
${HOME}/.config/Code/User/settings.json | |||
cat ${HOME}/.config/Code/User/settings.json | |||
# MacOS | |||
echo -E "$(jq '."sonarlint.pathToNodeExecutable"="/home/shahed/.nvm/versions/node/v18.16.0/bin/node"'\ | |||
${HOME}/Library/Application Support/Code/User/settings.json)">\ | |||
${HOME}/Library/Application Support/Code/User/settings.json | |||
</syntaxhighlight> | |||
==Playground== | |||
{| | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
sudo snap install --revision 159 --classic code | |||
code --in-process-gpu . | |||
</syntaxhighlight> | |||
| valign="top" | | |||
| valign="top" | | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
| valign="top" | | |||
| valign="top" | | |||
|} | |||
==References== | ==References== | ||
{| | |||
| valign="top" | | |||
* [https://stackoverflow.com/questions/55255456/ VsCode move Activity Bar to bottom] | |||
* [https://marketplace.visualstudio.com/items?itemName=EQuimper.react-native-react-redux React-Native/React/Redux Snippets] | * [https://marketplace.visualstudio.com/items?itemName=EQuimper.react-native-react-redux React-Native/React/Redux Snippets] | ||
* [https://hub.docker.com/r/linuxserver/code-server Code Server By Docker Container] | * [https://hub.docker.com/r/linuxserver/code-server Code Server By Docker Container] | ||
Line 69: | Line 161: | ||
* [https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme Material Icon Theme] | * [https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme Material Icon Theme] | ||
* [https://marketplace.visualstudio.com/items?itemName=msjsdiag.vscode-react-native React Native Tools] | * [https://marketplace.visualstudio.com/items?itemName=msjsdiag.vscode-react-native React Native Tools] | ||
* [https://marketplace.visualstudio.com/items?itemName=iocave.customize-ui Customize UI] | |||
* [https://marketplace.visualstudio.com/items?itemName=ckolkman.vscode-postgres PostgreSQL] | |||
* [https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer Live Server] | * [https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer Live Server] | ||
| valign="top" | | |||
* [https://thedeveloperspace.com/increase-visual-studio-code-terminal-buffer-size/ Increase VSCode Terminal Buffer Size] | |||
* [https://stackoverflow.com/questions/48440673/ Switch Between Terminals in VSCode] | |||
* [https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode Visual Studio IntelliCode] | |||
* [https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack Extension Pack for Java] | |||
* [https://marketplace.visualstudio.com/items?itemName=isudox.vscode-jetbrains-keybindings JetBrains IDE Keymap] | |||
* [[VS Code on iPad Pro]] | |||
* [https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-debug Debugger for Java] | |||
* [https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-maven Maven for Java] | |||
* [[NPM]] | |||
* [[Yarn]] | |||
| valign="top" | | |||
* [https://stackoverflow.com/questions/29973619/ VS Code file associations] | |||
* [https://marketplace.visualstudio.com/items?itemName=DotJoshJohnson.xml XML Tools] | |||
* [https://marketplace.visualstudio.com/items?itemName=redhat.vscode-xml XML] | |||
|} |
Latest revision as of 02:49, 12 June 2024
vs code sudo snap install code --classic code ./my_project
Shortcuts
─────────────────────────────────────────────── ⌘ + Shift + \ » Focus terminal tabs view ⌘ + PgUp » Move to previous terminal ⌘ + PgDn » Move to next terminal |
─────────────────────────────────────────────── Control + Shift + \ » Focus terminal tabs view Control + PgUp » Move to previous terminal Control + PgDn » Move to next terminal |
Docker
mkdir -p $HOME/.chorke/docker/vscode/.config
docker run -it --name=vscode \
--env "DOCKER_USER=$USER" \
--user "$(id -u):$(id -g)" \
--publish 127.0.0.1:8080:8080 \
--volume "$HOME/.chorke/docker/vscode/.config:/home/coder/.config" \
--volume "$HOME/chorke/academia/java/base_wss/core_ws:/home/coder/project" \
hub.chorke.org/codercom/code-server:latest
mkdir -p $HOME/chorke/academia/java/base_wss/core_ws
docker run --detach \
--name=vscode \
--env PUID=1000 \
--env PGID=1000 \
--publish 8443:8443 \
--env PASSWORD=sadaqah! \
--restart unless-stopped \
--env TZ=Asia/Kuala_Lumpur \
--env SUDO_PASSWORD=sadaqah! \
--volume "$HOME/chorke/academia/java/base_wss/core_ws:/config" \
hub.chorke.org/linuxserver/code-server
mkdir -p $HOME/chorke/academia/java/base_wss/core_ws
docker run --detach \
--name=vscode \
--env PUID=1000 \
--env PGID=1000 \
--publish 8443:8443 \
--env PASSWORD=sadaqah! \
--restart unless-stopped \
--env TZ=Asia/Kuala_Lumpur \
--env SUDO_PASSWORD=sadaqah! \
--volume "$HOME/chorke/academia/java/base_wss/core_ws:/config" \
hub.chorke.org/linuxserver/code-server:arm32v7-version-v3.8.0
Git Ignore
.vscode/* .history/ *.code-workspace !.vscode/tasks.json !.vscode/launch.json !.vscode/settings.json !.vscode/extensions.json
Extensions
quick open (control + p) ext install redhat.vscode-extension-red-hat-business-automation-bundle ext install kie-group.vscode-extension-kogito-bundle ext install isudox.vscode-jetbrains-keybindings ext install EQuimper.react-native-react-redux ext install SonarSource.sonarlint-vscode ext install msjsdiag.vscode-react-native ext install Postman.postman-for-vscode ext install PKief.material-icon-theme ext install ckolkman.vscode-postgres ext install esbenp.prettier-vscode ext install ritwickdey.LiveServer ext install DotJoshJohnson.xml ext install redhat.vscode-xml
ext install ms-kubernetes-tools.vscode-kubernetes-tools ext install ms-vscode-remote.remote-containers ext install ms-azuretools.vscode-docker ext install ms-python.python
ext install iocave.customize-ui
Preferences
open settings (control + shift + p) Preferences:Open Settings (JSON) Preferences:Open Settings (UI)
File Associations
# Debian
echo -E "$(jq '."files.associations"= {"*.bpmn": "xml", "*.dmn": "xml"}'\
${HOME}/.config/Code/User/settings.json)">\
${HOME}/.config/Code/User/settings.json
# MacOS
echo -E "$(jq '."files.associations"= {"*.bpmn": "xml", "*.dmn": "xml"}'\
${HOME}/Library/Application Support/Code/User/settings.json)">\
${HOME}/Library/Application Support/Code/User/settings.json
File Associations
# Debian
cat ${HOME}/.config/Code/User/settings.json
echo "$(cd ~/.nvm/versions/node/v18.16.0/bin/;pwd)/node"
echo -E "$(jq '."sonarlint.pathToNodeExecutable"="/home/shahed/.nvm/versions/node/v18.16.0/bin/node"'\
${HOME}/.config/Code/User/settings.json)">\
${HOME}/.config/Code/User/settings.json
cat ${HOME}/.config/Code/User/settings.json
# MacOS
echo -E "$(jq '."sonarlint.pathToNodeExecutable"="/home/shahed/.nvm/versions/node/v18.16.0/bin/node"'\
${HOME}/Library/Application Support/Code/User/settings.json)">\
${HOME}/Library/Application Support/Code/User/settings.json
Playground
sudo snap install --revision 159 --classic code
code --in-process-gpu .
|
||
| ||