publiziert am 19. 09. 2025 um 12:00
This is a random List of Tools and Tips that might be useful for Students in my classes the first Semester. It is work in progress and will be updated as we go.
As a general purpose editor, I recommend Visual Studio Code. It is free, open-source, and runs on all platforms.
PATHTo add VSCode to your PATH (the path that the OS follows to find all tools usable on the command line), you can use the:
Shell Command: Install 'code' command in PATH command from the Command Palette (⌘-shift-p, cmd-shift-p), as described in the documentation.
You can then use VSCode from the command line like this:
code myproject
or
code . (points to the current directory)
etc.
To Use Java in VSCode, you can install the Java Extension Pack from the Marketplace. This is a Meta-Pack from Microsoft that includes the most important Java Extensions for VSCode, including Language Support be RedHat.
Sometime, especially in the first semesster, it is useful to look at Files in HEX mode. For this you should install the HexEditor Extension from the Marketplace.
XML and YAML are important Data Formats for various stuff in this Semester. To get a good support for these formats, you can install the XML and YAML Extensions from the Marketplace.
For student struggling with their identity 😅 in Git, e.g. because they are working in different companies, they can use the power of zhs on Unix Systems as macOS or Linux.
to check identities, do:
git config --get user.email
…and adjust the eMail Identity accordingly for:
# just this repo
git config user.email "scmy@zhaw.ch"
# for all repos
git config --global user.email "scmy@zhaw.ch"
To easily switch between different Git Identities, you can put an alias in your ~/.zshrc file like this:
alias gitzhawuser='git config user.email "scmy@zhaw.ch"'
alias gitcompanyuser='git config user.email "bla@coop.ch"' # or whatever you work
Note: ~ is a shortcut for your home directory, e.g. /Users/rschumm on macOS.
Then, you can use it on your command line within a repo to set your email on it, e.g.
gitzhawuser
Note: with git config --get user.email you can check your current email address.
You can find more of my Git Tips in my Cheat Sheet git
Add macOS keychain (Schlüsselbund, ab macOS 15: Passwörter) as a credential helper for git:
git config --global credential.helper osxkeychain
ssh for loginIf you have trouble with your zhaw password, you can add your public ssh key to github SSH and GPG keys settings.
If you don’t have keys yet, follow those steps:
generate a key in ~/.ssh, you can leave the password empty.
ssh-keygen
if you want to be super secure, you can set a password, though.
change password:
ssh-keygen -p
add this identidy (key) to the ssh-agent:
ssh-add ~/.ssh/id_rsa
debug:
ssh-add --apple-use-keychain ~/.ssh/id_rsa
ssh-add l
Note: annotated tags -a contains metadata like date, author etc. and should be used for a submission (Abgabe). Without Commit-ID, the current state is used.
git tag -a abgabe_design -m "Designkonzept" [commit-id]
git push —tags
Hinweis: dieser Blog wiederspiegelt meine persönliche Meinung und hat nichts mit meiner Anstellung als Dozent der zhaw noch mit anderen Anstellungen zu tun.