|
| 1 | +# VSCode Quickstart Steps (CC Version) |
| 2 | + |
| 3 | +[Install Confluent for VS Code](https://docs.confluent.io/cloud/current/client-apps/vs-code-extension.html#cc-vscode-extension) for Confluent Cloud. |
| 4 | + |
| 5 | +In the VS Code Activity Bar, click the Confluent icon. |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +If you have many extensions installed, you may need to click … to access Additional Views and select Confluent from the context menu. |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +In the Side Bar, click Connect to Confluent Cloud, and in the permission dialog, click Allow. |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +The web browser opens to the Confluent Cloud login page. |
| 20 | + |
| 21 | +Enter your credentials and click Log in. |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +The web browser shows the Authentication Complete page. You can click "Open Visual Studio Code" if prompted, but for the purposes of this walkthrough, we will click "head to Confluent Cloud". |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | +Open the Confluent Cloud Console and [follow these steps](https://docs.confluent.io/cloud/current/get-started/index.html#section-1-create-a-cluster-and-add-a-topic) to create an environment. |
| 30 | + |
| 31 | +Next, create a Basic Kafka cluster by following [these steps](https://docs.confluent.io/cloud/current/get-started/index.html#step-1-create-a-ak-cluster-in-ccloud). |
| 32 | + |
| 33 | +Select Topics from the navigation menu in Confluent Cloud, then select Create topic with name `test-topic`. |
| 34 | + |
| 35 | +Return to VS Code and confirm that your Confluent Cloud resources are displayed in the Side Bar. |
| 36 | + |
| 37 | +Create the following file named message.json in your folder: |
| 38 | + |
| 39 | +```json |
| 40 | +{ |
| 41 | + "headers": [ |
| 42 | + { |
| 43 | + "key": "sample.header", |
| 44 | + "value": "sample_header_value" |
| 45 | + } |
| 46 | + ], |
| 47 | + "key": 1237, |
| 48 | + "value": { |
| 49 | + "ordertime": 1499986565014, |
| 50 | + "orderid": 1237, |
| 51 | + "itemid": "Customer Produce", |
| 52 | + "orderunits": 2.621748519463491, |
| 53 | + "address": { |
| 54 | + "city": "City_", |
| 55 | + "state": "State_", |
| 56 | + "zipcode": 79416 |
| 57 | + } |
| 58 | + } |
| 59 | +} |
| 60 | +``` |
| 61 | + |
| 62 | +Click the produce button and select `message.json` from your files. |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | +Navigate to the topics resource tab, click ‘play’, and see your message coming into the VSCode message viewer! |
| 67 | + |
| 68 | + |
0 commit comments